From 2ae231cc65db1bc091b26ded6c9147a7f31b2a4e Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Sat, 25 Jan 2020 15:15:05 -0800 Subject: [PATCH] chore: update stage0 --- stage0/src/Init/Lean/Elab/Term.lean | 11 +- stage0/src/Init/Lean/Elab/TermApp.lean | 39 +- stage0/src/Init/Lean/Elab/TermBinders.lean | 39 +- stage0/src/Init/Lean/Parser/Term.lean | 3 + .../stdlib/Init/Lean/Elab/BuiltinNotation.c | 4 +- stage0/stdlib/Init/Lean/Elab/Declaration.c | 4 +- stage0/stdlib/Init/Lean/Elab/Quotation.c | 240 +- stage0/stdlib/Init/Lean/Elab/Syntax.c | 4 +- stage0/stdlib/Init/Lean/Elab/Term.c | 2365 ++++++++--------- stage0/stdlib/Init/Lean/Elab/TermApp.c | 2162 +++++++-------- stage0/stdlib/Init/Lean/Elab/TermBinders.c | 715 +++-- stage0/stdlib/Init/Lean/Parser/Term.c | 688 +++++ 12 files changed, 3252 insertions(+), 3022 deletions(-) diff --git a/stage0/src/Init/Lean/Elab/Term.lean b/stage0/src/Init/Lean/Elab/Term.lean index d48f8cad39..a0d83b204e 100644 --- a/stage0/src/Init/Lean/Elab/Term.lean +++ b/stage0/src/Init/Lean/Elab/Term.lean @@ -313,11 +313,6 @@ modify $ fun s => { syntheticMVars := { mvarId := mvarId, ref := ref, kind := ki @[inline] def withoutPostponing {α} (x : TermElabM α) : TermElabM α := adaptReader (fun (ctx : Context) => { mayPostpone := false, .. ctx }) x -@[inline] def withNode {α} (stx : Syntax) (x : Syntax → TermElabM α) : TermElabM α := -match stx with -| Syntax.node _ _ => x stx -| _ => throwError stx ("term elaborator failed, unexpected syntax: " ++ toString stx) - /-- Creates syntax for `(` `:` `)` -/ def mkExplicitBinder (ident : Syntax) (type : Syntax) : Syntax := mkNode `Lean.Parser.Term.explicitBinder #[mkAtom "(", mkNullNode #[ident], mkNullNode #[mkAtom ":", type], mkNullNode, mkAtom ")"] @@ -471,13 +466,13 @@ instance : MonadMacroAdapter TermElabM := /- Main loop for `elabTerm` -/ partial def elabTermAux (expectedType? : Option Expr) (catchExPostpone := true) : Syntax → TermElabM Expr -| stx => withFreshMacroScope $ withIncRecDepth stx $ withNode stx $ fun node => do +| stx => withFreshMacroScope $ withIncRecDepth stx $ do trace `Elab.step stx $ fun _ => stx; s ← get; let table := (termElabAttribute.ext.getState s.env).table; - let k := node.getKind; + let k := stx.getKind; match table.find? k with - | some elabFns => elabTermUsing s node expectedType? catchExPostpone elabFns + | some elabFns => elabTermUsing s stx expectedType? catchExPostpone elabFns | none => do env ← getEnv; stx' ← catch diff --git a/stage0/src/Init/Lean/Elab/TermApp.lean b/stage0/src/Init/Lean/Elab/TermApp.lean index 789fc3f5e0..c75c76754a 100644 --- a/stage0/src/Init/Lean/Elab/TermApp.lean +++ b/stage0/src/Init/Lean/Elab/TermApp.lean @@ -304,9 +304,27 @@ lvls.foldSepRevArgsM pure (lvl::lvls)) [] +private partial def elabAppFnId (ref : Syntax) (fIdent : Syntax) (fExplicitUnivs : List Level) (lvals : List LVal) + (namedArgs : Array NamedArg) (args : Array Arg) (expectedType? : Option Expr) (explicit : Bool) (acc : Array TermElabResult) + : TermElabM (Array TermElabResult) := +match fIdent with +| Syntax.ident _ _ n preresolved => do + funLVals ← resolveName fIdent n preresolved fExplicitUnivs; + funLVals.foldlM + (fun acc ⟨f, fields⟩ => do + let lvals' := fields.map LVal.fieldName; + s ← observing $ elabAppLVals ref f (lvals' ++ lvals) namedArgs args expectedType? explicit; + pure $ acc.push s) + acc +| _ => throwUnsupportedSyntax + private partial def elabAppFn (ref : Syntax) : Syntax → List LVal → Array NamedArg → Array Arg → Option Expr → Bool → Array TermElabResult → TermElabM (Array TermElabResult) | f, lvals, namedArgs, args, expectedType?, explicit, acc => - if f.getKind == choiceKind then + if f.isIdent then + -- A raw identifier is not a valid Term. Recall that `Term.id` is defined as `parser! ident >> optional (explicitUniv <|> namedPattern)` + -- We handle it here to make macro development more comfortable. + elabAppFnId ref f [] lvals namedArgs args expectedType? explicit acc + else if f.getKind == choiceKind then f.getArgs.foldlM (fun acc f => elabAppFn f lvals namedArgs args expectedType? explicit acc) acc else match_syntax f with | `(@$id:id) => @@ -319,20 +337,10 @@ private partial def elabAppFn (ref : Syntax) : Syntax → List LVal → Array Na elabAppFn (f.getArg 0) (newLVals ++ lvals) namedArgs args expectedType? explicit acc | `($e[$idx]) => elabAppFn e (LVal.getOp idx :: lvals) namedArgs args expectedType? explicit acc - -- TODO: replace `*` with new `?` optional modifier - | `($id:ident$us:explicitUniv*) => + | `($id:ident$us:explicitUniv*) => do -- Remark: `id.` should already have been expanded - match id with - | Syntax.ident _ _ n preresolved => do - us ← if us.isEmpty then pure [] else elabExplicitUniv (us.get! 0); - funLVals ← resolveName f n preresolved us; - funLVals.foldlM - (fun acc ⟨f, fields⟩ => do - let lvals' := fields.map LVal.fieldName; - s ← observing $ elabAppLVals ref f (lvals' ++ lvals) namedArgs args expectedType? explicit; - pure $ acc.push s) - acc - | _ => throwUnsupportedSyntax + us ← if us.isEmpty then pure [] else elabExplicitUniv (us.get! 0); + elabAppFnId ref id us lvals namedArgs args expectedType? explicit acc | _ => do f ← elabTerm f none; s ← observing $ elabAppLVals ref f lvals namedArgs args expectedType? explicit; @@ -410,6 +418,9 @@ fun stx expectedType? => elabAppAux stx stx #[] #[] expectedType? @[builtinTermElab choice] def elabChoice : TermElab := elabAtom @[builtinTermElab proj] def elabProj : TermElab := elabAtom @[builtinTermElab arrayRef] def elabArrayRef : TermElab := elabAtom +/- A raw identiier is not a valid term, + but it is nice to have a handler for them because it allows `macros` to insert them into terms. -/ +@[builtinTermElab ident] def elabRawIdent : TermElab := elabAtom @[builtinTermElab sortApp] def elabSortApp : TermElab := fun stx _ => do diff --git a/stage0/src/Init/Lean/Elab/TermBinders.lean b/stage0/src/Init/Lean/Elab/TermBinders.lean index f042be48e9..e055b36568 100644 --- a/stage0/src/Init/Lean/Elab/TermBinders.lean +++ b/stage0/src/Init/Lean/Elab/TermBinders.lean @@ -56,32 +56,33 @@ else throwUnsupportedSyntax private def matchBinder (stx : Syntax) : TermElabM (Array BinderView) := -withNode stx $ fun node => do - let k := node.getKind; +match stx with +| Syntax.node k args => if k == `Lean.Parser.Term.simpleBinder then -- binderIdent+ - let ids := (node.getArg 0).getArgs; + let ids := (args.get! 0).getArgs; let type := mkHole stx; ids.mapM $ fun id => do id ← expandBinderIdent id; pure { id := id, type := type, bi := BinderInfo.default } else if k == `Lean.Parser.Term.explicitBinder then do -- `(` binderIdent+ binderType (binderDefault <|> binderTactic)? `)` - let ids := (node.getArg 1).getArgs; - let type := expandBinderType (node.getArg 2); - let optModifier := node.getArg 3; + let ids := (args.get! 1).getArgs; + let type := expandBinderType (args.get! 2); + let optModifier := args.get! 3; type ← expandBinderModifier type optModifier; ids.mapM $ fun id => do id ← expandBinderIdent id; pure { id := id, type := type, bi := BinderInfo.default } else if k == `Lean.Parser.Term.implicitBinder then -- `{` binderIdent+ binderType `}` - let ids := (node.getArg 1).getArgs; - let type := expandBinderType (node.getArg 2); + let ids := (args.get! 1).getArgs; + let type := expandBinderType (args.get! 2); ids.mapM $ fun id => do id ← expandBinderIdent id; pure { id := id, type := type, bi := BinderInfo.implicit } else if k == `Lean.Parser.Term.instBinder then do -- `[` optIdent type `]` - id ← expandOptIdent (node.getArg 1); - let type := node.getArg 2; + id ← expandOptIdent (args.get! 1); + let type := args.get! 2; pure #[ { id := id, type := type, bi := BinderInfo.instImplicit } ] else - throwError stx "term elaborator failed, unexpected binder syntax" + throwUnsupportedSyntax +| _ => throwUnsupportedSyntax def mkFreshFVarId : TermElabM Name := do s ← get; @@ -275,12 +276,8 @@ if optType.isNone then else (optType.getArg 0).getArg 1 -def elabLetIdDecl (ref : Syntax) (decl body : Syntax) (expectedType? : Option Expr) : TermElabM Expr := do --- `decl` is of the form: ident bracktedBinder+ (`:` term)? `:=` term -let n := decl.getIdAt 0; -let binders := (decl.getArg 1).getArgs; -let type := expandOptType ref (decl.getArg 2); -let val := decl.getArg 4; +def elabLetDeclAux (ref : Syntax) (n : Name) (binders : Array Syntax) (type : Syntax) (val : Syntax) (body : Syntax) + (expectedType? : Option Expr) : TermElabM Expr := do (type, val) ← elabBinders binders $ fun xs => do { type ← elabType type; val ← elabTerm val type; @@ -294,6 +291,14 @@ withLetDecl ref n type val $ fun x => do body ← instantiateMVars ref body; mkLet ref x body +def elabLetIdDecl (ref : Syntax) (decl body : Syntax) (expectedType? : Option Expr) : TermElabM Expr := +-- `decl` is of the form: ident bracktedBinder+ (`:` term)? `:=` term +let n := decl.getIdAt 0; +let binders := (decl.getArg 1).getArgs; +let type := expandOptType ref (decl.getArg 2); +let val := decl.getArg 4; +elabLetDeclAux ref n binders type val body expectedType? + def elabLetEqnsDecl (ref : Syntax) (decl body : Syntax) (expectedType? : Option Expr) : TermElabM Expr := throwError decl "not implemented yet" diff --git a/stage0/src/Init/Lean/Parser/Term.lean b/stage0/src/Init/Lean/Parser/Term.lean index fc749e0567..6fe74ac98b 100644 --- a/stage0/src/Init/Lean/Parser/Term.lean +++ b/stage0/src/Init/Lean/Parser/Term.lean @@ -98,6 +98,9 @@ def letEqns := parser! try (letIdLhs >> lookahead " | ") >> many1Inden def letPatDecl := parser! termParser >> optType >> " := " >> termParser def letDecl := try letIdDecl <|> letEqns <|> letPatDecl @[builtinTermParser] def «let» := parser! "let " >> letDecl >> "; " >> termParser + +@[builtinTermParser] def «let_core» := parser! "let_core " >> termParser >> ":=" >> termParser >> "; " >> termParser + def leftArrow : Parser := unicodeSymbol " ← " " <- " def doLet := parser! "let " >> letDecl def doId := parser! try (ident >> optType >> leftArrow) >> termParser diff --git a/stage0/stdlib/Init/Lean/Elab/BuiltinNotation.c b/stage0/stdlib/Init/Lean/Elab/BuiltinNotation.c index b84a8dac7f..3691395c1d 100644 --- a/stage0/stdlib/Init/Lean/Elab/BuiltinNotation.c +++ b/stage0/stdlib/Init/Lean/Elab/BuiltinNotation.c @@ -507,7 +507,6 @@ lean_object* l_Lean_Elab_Term_elabSubtype___lambda__1___closed__6; lean_object* l_Lean_Elab_Term_elabDo___lambda__1___closed__1; lean_object* l_Lean_mkTermIdFrom(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabGT___closed__2; -extern lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; lean_object* l_Lean_Expr_consumeMData___main(lean_object*); lean_object* l_Lean_Elab_Term_elabGT___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabAnoymousCtor___closed__1; @@ -570,6 +569,7 @@ lean_object* l_Lean_Elab_Term_elabIf___lambda__1___closed__9; lean_object* l_Lean_Elab_Term_elabBEq___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabLT___closed__2; lean_object* l_Lean_Elab_Term_elabBNe___closed__1; +extern lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; lean_object* l_Lean_Elab_Term_elabDollarProj___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabBind___closed__1; lean_object* l_Lean_Elab_Term_elabBNe___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -4648,7 +4648,7 @@ x_21 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed lean_inc(x_3); x_22 = lean_array_push(x_3, x_21); x_23 = lean_array_push(x_22, x_14); -x_24 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_24 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_25 = lean_array_push(x_23, x_24); x_26 = lean_array_push(x_25, x_7); x_27 = lean_alloc_ctor(1, 2, 0); diff --git a/stage0/stdlib/Init/Lean/Elab/Declaration.c b/stage0/stdlib/Init/Lean/Elab/Declaration.c index 2ee0e693d9..963e47c34e 100644 --- a/stage0/stdlib/Init/Lean/Elab/Declaration.c +++ b/stage0/stdlib/Init/Lean/Elab/Declaration.c @@ -29,7 +29,6 @@ lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabDeclaration(lean_ob lean_object* l_Lean_Syntax_getOptional_x3f(lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabConstant___closed__2; -extern lean_object* l_Lean_Elab_Term_elabLet___closed__7; lean_object* l_Lean_Elab_Command_elabDeclaration___closed__4; lean_object* l_Lean_Syntax_getIdAt(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabExample(lean_object*, lean_object*, lean_object*, lean_object*); @@ -71,6 +70,7 @@ lean_object* l_Lean_Elab_Command_elabConstant___closed__11; extern lean_object* l_Lean_Parser_Command_def___elambda__1___closed__2; extern lean_object* l_Lean_Parser_Command_declValSimple___elambda__1___closed__2; extern lean_object* l_Lean_Meta_registerInstanceAttr___closed__1; +extern lean_object* l_Lean_Parser_Term_let__core___elambda__1___closed__7; lean_object* l_Lean_Elab_Command_elabConstant(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabAxiom___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandOptDeclSig(lean_object*); @@ -546,7 +546,7 @@ x_34 = l_Lean_mkAppStx___closed__8; x_35 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_35, 0, x_34); lean_ctor_set(x_35, 1, x_33); -x_36 = l_Lean_Elab_Term_elabLet___closed__7; +x_36 = l_Lean_Parser_Term_let__core___elambda__1___closed__7; x_37 = l_Lean_mkAtomFrom(x_2, x_36); x_38 = l_Lean_mkAppStx___closed__9; x_39 = lean_array_push(x_38, x_37); diff --git a/stage0/stdlib/Init/Lean/Elab/Quotation.c b/stage0/stdlib/Init/Lean/Elab/Quotation.c index 01b16c3534..7b6b39c97a 100644 --- a/stage0/stdlib/Init/Lean/Elab/Quotation.c +++ b/stage0/stdlib/Init/Lean/Elab/Quotation.c @@ -265,6 +265,7 @@ lean_object* l_Lean_Unhygienic_run___rarg(lean_object*); lean_object* l_Lean_String_HasQuote(lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__6; +extern lean_object* l_Lean_Parser_Term_let__core___elambda__1___closed__7; lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___closed__3; lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); @@ -483,7 +484,6 @@ lean_object* l_Lean_Elab_Term_getOpenDecls(lean_object*, lean_object*); lean_object* l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__11(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkTermIdFrom(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__17; -lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___closed__4; lean_object* l_List_filterAux___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__9(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main(lean_object*, lean_object*, lean_object*); @@ -4829,24 +4829,16 @@ return x_3; lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3() { _start: { -lean_object* x_1; -x_1 = lean_mk_string(":="); -return x_1; -} -} -lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; +x_2 = l_Lean_Parser_Term_let__core___elambda__1___closed__7; x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__5() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4() { _start: { lean_object* x_1; @@ -4854,22 +4846,22 @@ x_1 = lean_mk_string("discr"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__5; +x_1 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__5; +x_1 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; +x_3 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__5; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -4877,17 +4869,17 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__5; +x_2 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8() { _start: { lean_object* x_1; @@ -4895,12 +4887,12 @@ x_1 = lean_mk_string(";"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; +x_2 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -4928,12 +4920,12 @@ x_12 = l_Array_empty___closed__1; x_13 = lean_array_push(x_12, x_1); x_14 = l___private_Init_Lean_Elab_Term_5__expandCDot___closed__4; x_15 = lean_array_push(x_13, x_14); -x_16 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_16 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_17 = lean_array_push(x_15, x_16); -x_18 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; +x_18 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; x_19 = l_Lean_addMacroScope(x_10, x_18, x_6); x_20 = lean_box(0); -x_21 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_21 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; x_22 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_22, 0, x_11); lean_ctor_set(x_22, 1, x_21); @@ -4952,7 +4944,7 @@ lean_ctor_set(x_29, 0, x_28); lean_ctor_set(x_29, 1, x_27); x_30 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_31 = lean_array_push(x_30, x_29); -x_32 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_32 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_33 = lean_array_push(x_31, x_32); x_34 = lean_array_push(x_33, x_2); x_35 = l_Lean_Parser_Term_let___elambda__1___closed__2; @@ -4975,12 +4967,12 @@ x_40 = l_Array_empty___closed__1; x_41 = lean_array_push(x_40, x_1); x_42 = l___private_Init_Lean_Elab_Term_5__expandCDot___closed__4; x_43 = lean_array_push(x_41, x_42); -x_44 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_44 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_45 = lean_array_push(x_43, x_44); -x_46 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; +x_46 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; x_47 = l_Lean_addMacroScope(x_37, x_46, x_6); x_48 = lean_box(0); -x_49 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_49 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; x_50 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_50, 0, x_39); lean_ctor_set(x_50, 1, x_49); @@ -4999,7 +4991,7 @@ lean_ctor_set(x_57, 0, x_56); lean_ctor_set(x_57, 1, x_55); x_58 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_59 = lean_array_push(x_58, x_57); -x_60 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_60 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_61 = lean_array_push(x_59, x_60); x_62 = lean_array_push(x_61, x_2); x_63 = l_Lean_Parser_Term_let___elambda__1___closed__2; @@ -5223,7 +5215,7 @@ x_19 = l_Array_empty___closed__1; x_20 = lean_array_push(x_19, x_2); x_21 = l___private_Init_Lean_Elab_Term_5__expandCDot___closed__4; x_22 = lean_array_push(x_20, x_21); -x_23 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_23 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_24 = lean_array_push(x_22, x_23); x_25 = l_Lean_mkAppStx___closed__7; x_26 = lean_name_mk_string(x_1, x_25); @@ -5255,9 +5247,9 @@ x_40 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_40, 0, x_4); lean_ctor_set(x_40, 1, x_39); x_41 = lean_array_push(x_19, x_40); -x_42 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; +x_42 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; x_43 = l_Lean_addMacroScope(x_13, x_42, x_9); -x_44 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_44 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; x_45 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_45, 0, x_16); lean_ctor_set(x_45, 1, x_44); @@ -5283,7 +5275,7 @@ lean_ctor_set(x_55, 0, x_18); lean_ctor_set(x_55, 1, x_54); x_56 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_57 = lean_array_push(x_56, x_55); -x_58 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_58 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_59 = lean_array_push(x_57, x_58); x_60 = lean_array_push(x_59, x_5); x_61 = lean_alloc_ctor(1, 2, 0); @@ -5311,7 +5303,7 @@ x_69 = l_Array_empty___closed__1; x_70 = lean_array_push(x_69, x_2); x_71 = l___private_Init_Lean_Elab_Term_5__expandCDot___closed__4; x_72 = lean_array_push(x_70, x_71); -x_73 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_73 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_74 = lean_array_push(x_72, x_73); x_75 = l_Lean_mkAppStx___closed__7; x_76 = lean_name_mk_string(x_1, x_75); @@ -5343,9 +5335,9 @@ x_90 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_90, 0, x_4); lean_ctor_set(x_90, 1, x_89); x_91 = lean_array_push(x_69, x_90); -x_92 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; +x_92 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; x_93 = l_Lean_addMacroScope(x_62, x_92, x_9); -x_94 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_94 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; x_95 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_95, 0, x_66); lean_ctor_set(x_95, 1, x_94); @@ -5371,7 +5363,7 @@ lean_ctor_set(x_105, 0, x_68); lean_ctor_set(x_105, 1, x_104); x_106 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_107 = lean_array_push(x_106, x_105); -x_108 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_108 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_109 = lean_array_push(x_107, x_108); x_110 = lean_array_push(x_109, x_5); x_111 = lean_alloc_ctor(1, 2, 0); @@ -5470,12 +5462,12 @@ x_18 = l_Array_empty___closed__1; x_19 = lean_array_push(x_18, x_2); x_20 = l___private_Init_Lean_Elab_Term_5__expandCDot___closed__4; x_21 = lean_array_push(x_19, x_20); -x_22 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_22 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_23 = lean_array_push(x_21, x_22); -x_24 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; +x_24 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; x_25 = l_Lean_addMacroScope(x_12, x_24, x_8); x_26 = lean_box(0); -x_27 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_27 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; x_28 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_28, 0, x_15); lean_ctor_set(x_28, 1, x_27); @@ -5492,7 +5484,7 @@ lean_ctor_set(x_33, 0, x_17); lean_ctor_set(x_33, 1, x_32); x_34 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_35 = lean_array_push(x_34, x_33); -x_36 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_36 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_37 = lean_array_push(x_35, x_36); x_38 = lean_array_push(x_37, x_4); x_39 = lean_alloc_ctor(1, 2, 0); @@ -5519,12 +5511,12 @@ x_47 = l_Array_empty___closed__1; x_48 = lean_array_push(x_47, x_2); x_49 = l___private_Init_Lean_Elab_Term_5__expandCDot___closed__4; x_50 = lean_array_push(x_48, x_49); -x_51 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_51 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_52 = lean_array_push(x_50, x_51); -x_53 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; +x_53 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; x_54 = l_Lean_addMacroScope(x_40, x_53, x_8); x_55 = lean_box(0); -x_56 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_56 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; x_57 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_57, 0, x_44); lean_ctor_set(x_57, 1, x_56); @@ -5541,7 +5533,7 @@ lean_ctor_set(x_62, 0, x_46); lean_ctor_set(x_62, 1, x_61); x_63 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_64 = lean_array_push(x_63, x_62); -x_65 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_65 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_66 = lean_array_push(x_64, x_65); x_67 = lean_array_push(x_66, x_4); x_68 = lean_alloc_ctor(1, 2, 0); @@ -7192,9 +7184,9 @@ x_27 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_27, 0, x_26); lean_ctor_set(x_27, 1, x_25); x_28 = lean_array_push(x_22, x_27); -x_29 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; +x_29 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; x_30 = l_Lean_addMacroScope(x_13, x_29, x_10); -x_31 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_31 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; x_32 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_32, 0, x_15); lean_ctor_set(x_32, 1, x_31); @@ -7294,9 +7286,9 @@ x_76 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_76, 0, x_75); lean_ctor_set(x_76, 1, x_74); x_77 = lean_array_push(x_71, x_76); -x_78 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; +x_78 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; x_79 = l_Lean_addMacroScope(x_62, x_78, x_59); -x_80 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_80 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; x_81 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_81, 0, x_64); lean_ctor_set(x_81, 1, x_80); @@ -8297,9 +8289,9 @@ if (x_57 == 0) lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; 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_58 = lean_ctor_get(x_56, 0); x_59 = lean_box(0); -x_60 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; +x_60 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; x_61 = l_Lean_addMacroScope(x_58, x_60, x_54); -x_62 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_62 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; x_63 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_63, 0, x_59); lean_ctor_set(x_63, 1, x_62); @@ -8310,7 +8302,7 @@ x_65 = lean_array_push(x_64, x_63); x_66 = l___private_Init_Lean_Elab_Term_5__expandCDot___closed__4; x_67 = lean_array_push(x_65, x_66); x_68 = lean_array_push(x_67, x_66); -x_69 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_69 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_70 = lean_array_push(x_68, x_69); x_71 = lean_array_push(x_70, x_17); x_72 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; @@ -8319,7 +8311,7 @@ lean_ctor_set(x_73, 0, x_72); lean_ctor_set(x_73, 1, x_71); x_74 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_75 = lean_array_push(x_74, x_73); -x_76 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_76 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_77 = lean_array_push(x_75, x_76); x_78 = lean_array_push(x_77, x_51); x_79 = l_Lean_Parser_Term_let___elambda__1___closed__2; @@ -8338,9 +8330,9 @@ lean_inc(x_82); lean_inc(x_81); lean_dec(x_56); x_83 = lean_box(0); -x_84 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; +x_84 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; x_85 = l_Lean_addMacroScope(x_81, x_84, x_54); -x_86 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_86 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; x_87 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_87, 0, x_83); lean_ctor_set(x_87, 1, x_86); @@ -8351,7 +8343,7 @@ x_89 = lean_array_push(x_88, x_87); x_90 = l___private_Init_Lean_Elab_Term_5__expandCDot___closed__4; x_91 = lean_array_push(x_89, x_90); x_92 = lean_array_push(x_91, x_90); -x_93 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_93 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_94 = lean_array_push(x_92, x_93); x_95 = lean_array_push(x_94, x_17); x_96 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; @@ -8360,7 +8352,7 @@ lean_ctor_set(x_97, 0, x_96); lean_ctor_set(x_97, 1, x_95); x_98 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_99 = lean_array_push(x_98, x_97); -x_100 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_100 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_101 = lean_array_push(x_99, x_100); x_102 = lean_array_push(x_101, x_51); x_103 = l_Lean_Parser_Term_let___elambda__1___closed__2; @@ -8449,9 +8441,9 @@ x_135 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_135, 0, x_134); lean_ctor_set(x_135, 1, x_133); x_136 = lean_array_push(x_130, x_135); -x_137 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; +x_137 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; x_138 = l_Lean_addMacroScope(x_122, x_137, x_119); -x_139 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_139 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; x_140 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_140, 0, x_124); lean_ctor_set(x_140, 1, x_139); @@ -8498,7 +8490,7 @@ lean_ctor_set(x_159, 3, x_27); x_160 = lean_array_push(x_130, x_159); x_161 = lean_array_push(x_160, x_132); x_162 = lean_array_push(x_161, x_132); -x_163 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_163 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_164 = lean_array_push(x_162, x_163); x_165 = lean_array_push(x_164, x_17); x_166 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; @@ -8507,7 +8499,7 @@ lean_ctor_set(x_167, 0, x_166); lean_ctor_set(x_167, 1, x_165); x_168 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_169 = lean_array_push(x_168, x_167); -x_170 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_170 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_171 = lean_array_push(x_169, x_170); x_172 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; x_173 = l_Lean_addMacroScope(x_157, x_172, x_153); @@ -8571,7 +8563,7 @@ lean_ctor_set(x_201, 3, x_27); x_202 = lean_array_push(x_130, x_201); x_203 = lean_array_push(x_202, x_132); x_204 = lean_array_push(x_203, x_132); -x_205 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_205 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_206 = lean_array_push(x_204, x_205); x_207 = lean_array_push(x_206, x_17); x_208 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; @@ -8580,7 +8572,7 @@ lean_ctor_set(x_209, 0, x_208); lean_ctor_set(x_209, 1, x_207); x_210 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_211 = lean_array_push(x_210, x_209); -x_212 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_212 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_213 = lean_array_push(x_211, x_212); x_214 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; x_215 = l_Lean_addMacroScope(x_198, x_214, x_153); @@ -8734,9 +8726,9 @@ x_274 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_274, 0, x_273); lean_ctor_set(x_274, 1, x_272); x_275 = lean_array_push(x_269, x_274); -x_276 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; +x_276 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; x_277 = l_Lean_addMacroScope(x_261, x_276, x_258); -x_278 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_278 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; x_279 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_279, 0, x_263); lean_ctor_set(x_279, 1, x_278); @@ -8790,7 +8782,7 @@ lean_ctor_set(x_299, 3, x_27); x_300 = lean_array_push(x_269, x_299); x_301 = lean_array_push(x_300, x_271); x_302 = lean_array_push(x_301, x_271); -x_303 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_303 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_304 = lean_array_push(x_302, x_303); x_305 = lean_array_push(x_304, x_17); x_306 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; @@ -8799,7 +8791,7 @@ lean_ctor_set(x_307, 0, x_306); lean_ctor_set(x_307, 1, x_305); x_308 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_309 = lean_array_push(x_308, x_307); -x_310 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_310 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_311 = lean_array_push(x_309, x_310); x_312 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; x_313 = l_Lean_addMacroScope(x_295, x_312, x_292); @@ -9032,9 +9024,9 @@ if (lean_is_exclusive(x_375)) { x_378 = lean_box(0); } x_379 = lean_box(0); -x_380 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; +x_380 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; x_381 = l_Lean_addMacroScope(x_376, x_380, x_373); -x_382 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_382 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; x_383 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_383, 0, x_379); lean_ctor_set(x_383, 1, x_382); @@ -9045,7 +9037,7 @@ x_385 = lean_array_push(x_384, x_383); x_386 = l___private_Init_Lean_Elab_Term_5__expandCDot___closed__4; x_387 = lean_array_push(x_385, x_386); x_388 = lean_array_push(x_387, x_386); -x_389 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_389 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_390 = lean_array_push(x_388, x_389); x_391 = lean_array_push(x_390, x_17); x_392 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; @@ -9054,7 +9046,7 @@ lean_ctor_set(x_393, 0, x_392); lean_ctor_set(x_393, 1, x_391); x_394 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_395 = lean_array_push(x_394, x_393); -x_396 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_396 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_397 = lean_array_push(x_395, x_396); x_398 = lean_array_push(x_397, x_370); x_399 = l_Lean_Parser_Term_let___elambda__1___closed__2; @@ -9175,9 +9167,9 @@ x_437 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_437, 0, x_436); lean_ctor_set(x_437, 1, x_435); x_438 = lean_array_push(x_432, x_437); -x_439 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; +x_439 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; x_440 = l_Lean_addMacroScope(x_424, x_439, x_421); -x_441 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_441 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; x_442 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_442, 0, x_426); lean_ctor_set(x_442, 1, x_441); @@ -9231,7 +9223,7 @@ lean_ctor_set(x_462, 3, x_27); x_463 = lean_array_push(x_432, x_462); x_464 = lean_array_push(x_463, x_434); x_465 = lean_array_push(x_464, x_434); -x_466 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_466 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_467 = lean_array_push(x_465, x_466); x_468 = lean_array_push(x_467, x_17); x_469 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; @@ -9240,7 +9232,7 @@ lean_ctor_set(x_470, 0, x_469); lean_ctor_set(x_470, 1, x_468); x_471 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_472 = lean_array_push(x_471, x_470); -x_473 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_473 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_474 = lean_array_push(x_472, x_473); x_475 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; x_476 = l_Lean_addMacroScope(x_458, x_475, x_455); @@ -9511,9 +9503,9 @@ if (x_550 == 0) lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; x_551 = lean_ctor_get(x_549, 0); x_552 = lean_box(0); -x_553 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; +x_553 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; x_554 = l_Lean_addMacroScope(x_551, x_553, x_547); -x_555 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_555 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; x_556 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_556, 0, x_552); lean_ctor_set(x_556, 1, x_555); @@ -9524,7 +9516,7 @@ x_558 = lean_array_push(x_557, x_556); x_559 = l___private_Init_Lean_Elab_Term_5__expandCDot___closed__4; x_560 = lean_array_push(x_558, x_559); x_561 = lean_array_push(x_560, x_559); -x_562 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_562 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_563 = lean_array_push(x_561, x_562); x_564 = lean_array_push(x_563, x_17); x_565 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; @@ -9533,7 +9525,7 @@ lean_ctor_set(x_566, 0, x_565); lean_ctor_set(x_566, 1, x_564); x_567 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_568 = lean_array_push(x_567, x_566); -x_569 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_569 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_570 = lean_array_push(x_568, x_569); x_571 = lean_array_push(x_570, x_544); x_572 = l_Lean_Parser_Term_let___elambda__1___closed__2; @@ -9552,9 +9544,9 @@ lean_inc(x_575); lean_inc(x_574); lean_dec(x_549); x_576 = lean_box(0); -x_577 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; +x_577 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; x_578 = l_Lean_addMacroScope(x_574, x_577, x_547); -x_579 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_579 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; x_580 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_580, 0, x_576); lean_ctor_set(x_580, 1, x_579); @@ -9565,7 +9557,7 @@ x_582 = lean_array_push(x_581, x_580); x_583 = l___private_Init_Lean_Elab_Term_5__expandCDot___closed__4; x_584 = lean_array_push(x_582, x_583); x_585 = lean_array_push(x_584, x_583); -x_586 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_586 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_587 = lean_array_push(x_585, x_586); x_588 = lean_array_push(x_587, x_17); x_589 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; @@ -9574,7 +9566,7 @@ lean_ctor_set(x_590, 0, x_589); lean_ctor_set(x_590, 1, x_588); x_591 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_592 = lean_array_push(x_591, x_590); -x_593 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_593 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_594 = lean_array_push(x_592, x_593); x_595 = lean_array_push(x_594, x_544); x_596 = l_Lean_Parser_Term_let___elambda__1___closed__2; @@ -9663,11 +9655,11 @@ x_628 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_628, 0, x_627); lean_ctor_set(x_628, 1, x_626); x_629 = lean_array_push(x_623, x_628); -x_630 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; +x_630 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; lean_inc(x_612); lean_inc(x_615); x_631 = l_Lean_addMacroScope(x_615, x_630, x_612); -x_632 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_632 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; x_633 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_633, 0, x_617); lean_ctor_set(x_633, 1, x_632); @@ -9800,7 +9792,7 @@ lean_ctor_set(x_705, 3, x_520); x_706 = lean_array_push(x_623, x_705); x_707 = lean_array_push(x_706, x_625); x_708 = lean_array_push(x_707, x_625); -x_709 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_709 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_710 = lean_array_push(x_708, x_709); x_711 = lean_array_push(x_710, x_17); x_712 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; @@ -9809,7 +9801,7 @@ lean_ctor_set(x_713, 0, x_712); lean_ctor_set(x_713, 1, x_711); x_714 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_715 = lean_array_push(x_714, x_713); -x_716 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_716 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_717 = lean_array_push(x_715, x_716); x_718 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; x_719 = l_Lean_addMacroScope(x_703, x_718, x_699); @@ -9873,7 +9865,7 @@ lean_ctor_set(x_747, 3, x_520); x_748 = lean_array_push(x_623, x_747); x_749 = lean_array_push(x_748, x_625); x_750 = lean_array_push(x_749, x_625); -x_751 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_751 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_752 = lean_array_push(x_750, x_751); x_753 = lean_array_push(x_752, x_17); x_754 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; @@ -9882,7 +9874,7 @@ lean_ctor_set(x_755, 0, x_754); lean_ctor_set(x_755, 1, x_753); x_756 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_757 = lean_array_push(x_756, x_755); -x_758 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_758 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_759 = lean_array_push(x_757, x_758); x_760 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; x_761 = l_Lean_addMacroScope(x_744, x_760, x_699); @@ -10037,11 +10029,11 @@ x_820 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_820, 0, x_819); lean_ctor_set(x_820, 1, x_818); x_821 = lean_array_push(x_815, x_820); -x_822 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; +x_822 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; lean_inc(x_804); lean_inc(x_807); x_823 = l_Lean_addMacroScope(x_807, x_822, x_804); -x_824 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_824 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; x_825 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_825, 0, x_809); lean_ctor_set(x_825, 1, x_824); @@ -10181,7 +10173,7 @@ lean_ctor_set(x_898, 3, x_520); x_899 = lean_array_push(x_815, x_898); x_900 = lean_array_push(x_899, x_817); x_901 = lean_array_push(x_900, x_817); -x_902 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_902 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_903 = lean_array_push(x_901, x_902); x_904 = lean_array_push(x_903, x_17); x_905 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; @@ -10190,7 +10182,7 @@ lean_ctor_set(x_906, 0, x_905); lean_ctor_set(x_906, 1, x_904); x_907 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_908 = lean_array_push(x_907, x_906); -x_909 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_909 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_910 = lean_array_push(x_908, x_909); x_911 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; x_912 = l_Lean_addMacroScope(x_894, x_911, x_891); @@ -10426,9 +10418,9 @@ if (lean_is_exclusive(x_974)) { x_977 = lean_box(0); } x_978 = lean_box(0); -x_979 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; +x_979 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; x_980 = l_Lean_addMacroScope(x_975, x_979, x_972); -x_981 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_981 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; x_982 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_982, 0, x_978); lean_ctor_set(x_982, 1, x_981); @@ -10439,7 +10431,7 @@ x_984 = lean_array_push(x_983, x_982); x_985 = l___private_Init_Lean_Elab_Term_5__expandCDot___closed__4; x_986 = lean_array_push(x_984, x_985); x_987 = lean_array_push(x_986, x_985); -x_988 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_988 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_989 = lean_array_push(x_987, x_988); x_990 = lean_array_push(x_989, x_17); x_991 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; @@ -10448,7 +10440,7 @@ lean_ctor_set(x_992, 0, x_991); lean_ctor_set(x_992, 1, x_990); x_993 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_994 = lean_array_push(x_993, x_992); -x_995 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_995 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_996 = lean_array_push(x_994, x_995); x_997 = lean_array_push(x_996, x_969); x_998 = l_Lean_Parser_Term_let___elambda__1___closed__2; @@ -10569,11 +10561,11 @@ x_1036 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1036, 0, x_1035); lean_ctor_set(x_1036, 1, x_1034); x_1037 = lean_array_push(x_1031, x_1036); -x_1038 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; +x_1038 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; lean_inc(x_1020); lean_inc(x_1023); x_1039 = l_Lean_addMacroScope(x_1023, x_1038, x_1020); -x_1040 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_1040 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; x_1041 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_1041, 0, x_1025); lean_ctor_set(x_1041, 1, x_1040); @@ -10713,7 +10705,7 @@ lean_ctor_set(x_1114, 3, x_520); x_1115 = lean_array_push(x_1031, x_1114); x_1116 = lean_array_push(x_1115, x_1033); x_1117 = lean_array_push(x_1116, x_1033); -x_1118 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_1118 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_1119 = lean_array_push(x_1117, x_1118); x_1120 = lean_array_push(x_1119, x_17); x_1121 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; @@ -10722,7 +10714,7 @@ lean_ctor_set(x_1122, 0, x_1121); lean_ctor_set(x_1122, 1, x_1120); x_1123 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_1124 = lean_array_push(x_1123, x_1122); -x_1125 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_1125 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_1126 = lean_array_push(x_1124, x_1125); x_1127 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; x_1128 = l_Lean_addMacroScope(x_1110, x_1127, x_1107); @@ -11711,7 +11703,7 @@ lean_ctor_set(x_65, 3, x_25); x_66 = lean_array_push(x_28, x_65); x_67 = lean_array_push(x_66, x_30); x_68 = lean_array_push(x_67, x_30); -x_69 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_69 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_70 = lean_array_push(x_68, x_69); x_71 = l___private_Init_Lean_Elab_Quotation_11__letBindRhss___main___closed__13; x_72 = lean_array_push(x_71, x_13); @@ -11726,7 +11718,7 @@ lean_ctor_set(x_77, 0, x_76); lean_ctor_set(x_77, 1, x_75); x_78 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_79 = lean_array_push(x_78, x_77); -x_80 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_80 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_81 = lean_array_push(x_79, x_80); x_82 = lean_array_push(x_81, x_56); x_83 = l_Lean_Parser_Term_let___elambda__1___closed__2; @@ -11753,7 +11745,7 @@ lean_ctor_set(x_88, 3, x_25); x_89 = lean_array_push(x_28, x_88); x_90 = lean_array_push(x_89, x_30); x_91 = lean_array_push(x_90, x_30); -x_92 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_92 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_93 = lean_array_push(x_91, x_92); x_94 = l___private_Init_Lean_Elab_Quotation_11__letBindRhss___main___closed__13; x_95 = lean_array_push(x_94, x_13); @@ -11768,7 +11760,7 @@ lean_ctor_set(x_100, 0, x_99); lean_ctor_set(x_100, 1, x_98); x_101 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_102 = lean_array_push(x_101, x_100); -x_103 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_103 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_104 = lean_array_push(x_102, x_103); x_105 = lean_array_push(x_104, x_56); x_106 = l_Lean_Parser_Term_let___elambda__1___closed__2; @@ -11902,7 +11894,7 @@ lean_ctor_set(x_145, 3, x_25); x_146 = lean_array_push(x_28, x_145); x_147 = lean_array_push(x_146, x_30); x_148 = lean_array_push(x_147, x_30); -x_149 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_149 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_150 = lean_array_push(x_148, x_149); x_151 = l___private_Init_Lean_Elab_Quotation_11__letBindRhss___main___closed__13; x_152 = lean_array_push(x_151, x_13); @@ -11917,7 +11909,7 @@ lean_ctor_set(x_157, 0, x_156); lean_ctor_set(x_157, 1, x_155); x_158 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_159 = lean_array_push(x_158, x_157); -x_160 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_160 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_161 = lean_array_push(x_159, x_160); x_162 = lean_array_push(x_161, x_135); x_163 = l_Lean_Parser_Term_let___elambda__1___closed__2; @@ -12096,7 +12088,7 @@ lean_ctor_set(x_229, 3, x_194); x_230 = lean_array_push(x_197, x_229); x_231 = lean_array_push(x_230, x_199); x_232 = lean_array_push(x_231, x_199); -x_233 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_233 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_234 = lean_array_push(x_232, x_233); x_235 = lean_array_push(x_234, x_184); x_236 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; @@ -12105,7 +12097,7 @@ lean_ctor_set(x_237, 0, x_236); lean_ctor_set(x_237, 1, x_235); x_238 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_239 = lean_array_push(x_238, x_237); -x_240 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_240 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_241 = lean_array_push(x_239, x_240); x_242 = lean_array_push(x_241, x_220); x_243 = l_Lean_Parser_Term_let___elambda__1___closed__2; @@ -12132,7 +12124,7 @@ lean_ctor_set(x_248, 3, x_194); x_249 = lean_array_push(x_197, x_248); x_250 = lean_array_push(x_249, x_199); x_251 = lean_array_push(x_250, x_199); -x_252 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_252 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_253 = lean_array_push(x_251, x_252); x_254 = lean_array_push(x_253, x_184); x_255 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; @@ -12141,7 +12133,7 @@ lean_ctor_set(x_256, 0, x_255); lean_ctor_set(x_256, 1, x_254); x_257 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_258 = lean_array_push(x_257, x_256); -x_259 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_259 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_260 = lean_array_push(x_258, x_259); x_261 = lean_array_push(x_260, x_220); x_262 = l_Lean_Parser_Term_let___elambda__1___closed__2; @@ -12275,7 +12267,7 @@ lean_ctor_set(x_301, 3, x_194); x_302 = lean_array_push(x_197, x_301); x_303 = lean_array_push(x_302, x_199); x_304 = lean_array_push(x_303, x_199); -x_305 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_305 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_306 = lean_array_push(x_304, x_305); x_307 = lean_array_push(x_306, x_184); x_308 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; @@ -12284,7 +12276,7 @@ lean_ctor_set(x_309, 0, x_308); lean_ctor_set(x_309, 1, x_307); x_310 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_311 = lean_array_push(x_310, x_309); -x_312 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_312 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_313 = lean_array_push(x_311, x_312); x_314 = lean_array_push(x_313, x_291); x_315 = l_Lean_Parser_Term_let___elambda__1___closed__2; @@ -12487,7 +12479,7 @@ lean_ctor_set(x_383, 3, x_340); x_384 = lean_array_push(x_343, x_383); x_385 = lean_array_push(x_384, x_345); x_386 = lean_array_push(x_385, x_345); -x_387 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_387 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_388 = lean_array_push(x_386, x_387); x_389 = lean_array_push(x_388, x_330); x_390 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; @@ -12496,7 +12488,7 @@ lean_ctor_set(x_391, 0, x_390); lean_ctor_set(x_391, 1, x_389); x_392 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_393 = lean_array_push(x_392, x_391); -x_394 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_394 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_395 = lean_array_push(x_393, x_394); x_396 = lean_array_push(x_395, x_373); x_397 = l_Lean_Parser_Term_let___elambda__1___closed__2; @@ -12706,7 +12698,7 @@ lean_ctor_set(x_466, 3, x_418); x_467 = lean_array_push(x_421, x_466); x_468 = lean_array_push(x_467, x_423); x_469 = lean_array_push(x_468, x_423); -x_470 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_470 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_471 = lean_array_push(x_469, x_470); x_472 = l___private_Init_Lean_Elab_Quotation_11__letBindRhss___main___closed__13; x_473 = lean_array_push(x_472, x_406); @@ -12721,7 +12713,7 @@ lean_ctor_set(x_478, 0, x_477); lean_ctor_set(x_478, 1, x_476); x_479 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_480 = lean_array_push(x_479, x_478); -x_481 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_481 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_482 = lean_array_push(x_480, x_481); x_483 = lean_array_push(x_482, x_456); x_484 = l_Lean_Parser_Term_let___elambda__1___closed__2; @@ -12942,7 +12934,7 @@ lean_ctor_set(x_557, 3, x_513); x_558 = lean_array_push(x_516, x_557); x_559 = lean_array_push(x_558, x_518); x_560 = lean_array_push(x_559, x_518); -x_561 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_561 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_562 = lean_array_push(x_560, x_561); x_563 = lean_array_push(x_562, x_503); x_564 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; @@ -12951,7 +12943,7 @@ lean_ctor_set(x_565, 0, x_564); lean_ctor_set(x_565, 1, x_563); x_566 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_567 = lean_array_push(x_566, x_565); -x_568 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_568 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_569 = lean_array_push(x_567, x_568); x_570 = lean_array_push(x_569, x_547); x_571 = l_Lean_Parser_Term_let___elambda__1___closed__2; @@ -13177,7 +13169,7 @@ lean_ctor_set(x_643, 3, x_594); x_644 = lean_array_push(x_597, x_643); x_645 = lean_array_push(x_644, x_599); x_646 = lean_array_push(x_645, x_599); -x_647 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_647 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_648 = lean_array_push(x_646, x_647); x_649 = l___private_Init_Lean_Elab_Quotation_11__letBindRhss___main___closed__13; x_650 = lean_array_push(x_649, x_581); @@ -13192,7 +13184,7 @@ lean_ctor_set(x_655, 0, x_654); lean_ctor_set(x_655, 1, x_653); x_656 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_657 = lean_array_push(x_656, x_655); -x_658 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_658 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_659 = lean_array_push(x_657, x_658); x_660 = lean_array_push(x_659, x_633); x_661 = l_Lean_Parser_Term_let___elambda__1___closed__2; @@ -13416,7 +13408,7 @@ lean_ctor_set(x_734, 3, x_690); x_735 = lean_array_push(x_693, x_734); x_736 = lean_array_push(x_735, x_695); x_737 = lean_array_push(x_736, x_695); -x_738 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_738 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_739 = lean_array_push(x_737, x_738); x_740 = lean_array_push(x_739, x_680); x_741 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; @@ -13425,7 +13417,7 @@ lean_ctor_set(x_742, 0, x_741); lean_ctor_set(x_742, 1, x_740); x_743 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_744 = lean_array_push(x_743, x_742); -x_745 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_745 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_746 = lean_array_push(x_744, x_745); x_747 = lean_array_push(x_746, x_724); x_748 = l_Lean_Parser_Term_let___elambda__1___closed__2; @@ -25460,8 +25452,6 @@ l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8 = _ lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8); l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9 = _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9(); lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9); -l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10 = _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10(); -lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10); l_Array_umapMAux___main___at___private_Init_Lean_Elab_Quotation_7__getHeadInfo___spec__2___closed__1 = _init_l_Array_umapMAux___main___at___private_Init_Lean_Elab_Quotation_7__getHeadInfo___spec__2___closed__1(); lean_mark_persistent(l_Array_umapMAux___main___at___private_Init_Lean_Elab_Quotation_7__getHeadInfo___spec__2___closed__1); l_Array_umapMAux___main___at___private_Init_Lean_Elab_Quotation_7__getHeadInfo___spec__2___closed__2 = _init_l_Array_umapMAux___main___at___private_Init_Lean_Elab_Quotation_7__getHeadInfo___spec__2___closed__2(); diff --git a/stage0/stdlib/Init/Lean/Elab/Syntax.c b/stage0/stdlib/Init/Lean/Elab/Syntax.c index 03482a8c3a..544ef5a6f2 100644 --- a/stage0/stdlib/Init/Lean/Elab/Syntax.c +++ b/stage0/stdlib/Init/Lean/Elab/Syntax.c @@ -19,6 +19,7 @@ lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__95; extern lean_object* l_Lean_Parser_Syntax_many___elambda__1___closed__1; lean_object* l_Lean_Elab_Term_getEnv___rarg(lean_object*); extern lean_object* l_Lean_Name_toString___closed__1; +extern lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Syntax_2__mkParserSeq___spec__1___closed__2; lean_object* l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__24; lean_object* l___private_Init_Lean_Elab_Syntax_4__withFirst(lean_object*); @@ -264,7 +265,6 @@ lean_object* l_Lean_Elab_Command_expandNotation___closed__3; extern lean_object* l___regBuiltinParser_Lean_Parser_Command_antiquot___closed__2; lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Syntax_2__mkParserSeq___spec__1___closed__1; lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*); -extern lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__91; lean_object* l_Lean_Elab_Command_elabMacroRules___lambda__1___closed__29; lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__78; @@ -7730,7 +7730,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Array_empty___closed__1; -x_2 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_2 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_3 = lean_array_push(x_1, x_2); return x_3; } diff --git a/stage0/stdlib/Init/Lean/Elab/Term.c b/stage0/stdlib/Init/Lean/Elab/Term.c index 43ecd0e413..d22f0646fc 100644 --- a/stage0/stdlib/Init/Lean/Elab/Term.c +++ b/stage0/stdlib/Init/Lean/Elab/Term.c @@ -351,7 +351,6 @@ lean_object* l___private_Init_Lean_Elab_Term_6__exceptionToSorry___boxed(lean_ob lean_object* l___private_Init_Lean_Elab_Term_1__mkMessageAux(lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Lean_Elab_Term_monadQuotation___closed__1; lean_object* l___private_Init_Lean_Elab_Term_13__mkFreshLevelMVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_withNode___rarg___closed__1; lean_object* l_Lean_Elab_Term_elabTypeStx(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_monadLog___closed__6; extern lean_object* l_Lean_strLitKind___closed__2; @@ -363,7 +362,6 @@ lean_object* l_Lean_Elab_Term_termElabAttribute___closed__3; lean_object* l_Nat_repr(lean_object*); lean_object* l_Lean_Elab_Term_State_inhabited___closed__2; extern lean_object* l_Char_HasRepr___closed__1; -lean_object* l_Lean_Elab_Term_withNode___rarg___closed__2; lean_object* l_Lean_Elab_getMacros(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Term_6__exceptionToSorry___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabListLit___closed__3; @@ -496,7 +494,6 @@ lean_object* l_Lean_Elab_Term_mkConst(lean_object*, lean_object*, lean_object*, lean_object* l_HashMapImp_contains___at_Lean_Elab_Term_addBuiltinTermElab___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkConst___closed__3; lean_object* l_Lean_Elab_Term_resolveName___closed__4; -lean_object* l_Lean_Elab_Term_withNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_nullKind___closed__2; lean_object* l_Lean_ParametricAttribute_setParam___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_Term_14__mkConsts___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -519,7 +516,6 @@ lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabNamedHole(lean_object*); extern lean_object* l___private_Init_Lean_Parser_Parser_14__antiquotNestedExpr___elambda__1___rarg___closed__2; lean_object* l_Lean_Elab_Term_mkFreshAnonymousName(lean_object*); lean_object* l_Lean_Elab_Term_withLCtx(lean_object*); -lean_object* l_Lean_Elab_Term_withNode(lean_object*); extern lean_object* l_Option_HasRepr___rarg___closed__3; lean_object* l_Lean_Elab_Term_traceAtCmdPos___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_findAtAux___main___at_Lean_Elab_Term_elabTermAux___main___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -717,7 +713,6 @@ lean_object* l_Lean_Elab_Term_addContext(lean_object*, lean_object*, lean_object extern lean_object* l_Lean_MessageData_coeOfOptExpr___closed__1; extern lean_object* l_Lean_Parser_Term_listLit___elambda__1___closed__2; uint8_t l_Lean_LocalInstance_beq(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_withNode___rarg___closed__3; lean_object* l_Lean_Elab_Term_registerBuiltinTermElabAttr___closed__4; extern lean_object* l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; lean_object* l_Lean_Elab_Term_elabRawCharLit___closed__1; @@ -8965,84 +8960,6 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withoutPostponing___rarg), 3, return x_2; } } -lean_object* _init_l_Lean_Elab_Term_withNode___rarg___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("term elaborator failed, unexpected syntax: "); -return x_1; -} -} -lean_object* _init_l_Lean_Elab_Term_withNode___rarg___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_withNode___rarg___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l_Lean_Elab_Term_withNode___rarg___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_withNode___rarg___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_Lean_Elab_Term_withNode___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -if (lean_obj_tag(x_1) == 1) -{ -lean_object* x_17; -x_17 = lean_apply_3(x_2, x_1, x_3, x_4); -return x_17; -} -else -{ -lean_object* x_18; -lean_dec(x_2); -x_18 = lean_box(0); -x_5 = x_18; -goto block_16; -} -block_16: -{ -lean_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_dec(x_5); -x_6 = lean_box(0); -x_7 = lean_unsigned_to_nat(0u); -lean_inc(x_1); -x_8 = l_Lean_Syntax_formatStxAux___main(x_6, x_7, x_1); -x_9 = l_Lean_Options_empty; -x_10 = l_Lean_Format_pretty(x_8, x_9); -x_11 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_11, 0, x_10); -x_12 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_12, 0, x_11); -x_13 = l_Lean_Elab_Term_withNode___rarg___closed__3; -x_14 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_12); -x_15 = l_Lean_Elab_Term_throwError___rarg(x_1, x_14, x_3, x_4); -lean_dec(x_1); -return x_15; -} -} -} -lean_object* l_Lean_Elab_Term_withNode(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withNode___rarg), 4, 0); -return x_2; -} -} lean_object* _init_l_Lean_Elab_Term_mkExplicitBinder___closed__1() { _start: { @@ -11911,7 +11828,7 @@ lean_ctor_set(x_5, 5, x_9); x_10 = !lean_is_exclusive(x_4); if (x_10 == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_201; lean_object* x_202; uint8_t x_203; +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_175; lean_object* x_176; uint8_t x_177; x_11 = lean_ctor_get(x_4, 0); x_12 = lean_ctor_get(x_4, 1); x_13 = lean_ctor_get(x_4, 2); @@ -11936,22 +11853,22 @@ lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_ctor_set(x_4, 9, x_7); -x_201 = lean_ctor_get(x_11, 3); -lean_inc(x_201); -x_202 = lean_ctor_get(x_11, 4); -lean_inc(x_202); -x_203 = lean_nat_dec_eq(x_201, x_202); -lean_dec(x_202); -lean_dec(x_201); -if (x_203 == 0) +x_175 = lean_ctor_get(x_11, 3); +lean_inc(x_175); +x_176 = lean_ctor_get(x_11, 4); +lean_inc(x_176); +x_177 = lean_nat_dec_eq(x_175, x_176); +lean_dec(x_176); +lean_dec(x_175); +if (x_177 == 0) { lean_dec(x_4); x_23 = x_5; -goto block_200; +goto block_174; } else { -lean_object* x_204; lean_object* x_205; uint8_t x_206; +lean_object* x_178; lean_object* x_179; uint8_t x_180; lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -11963,35 +11880,35 @@ lean_dec(x_12); lean_dec(x_11); lean_dec(x_7); lean_dec(x_1); -x_204 = l_Lean_Elab_Term_withIncRecDepth___rarg___closed__2; -x_205 = l_Lean_Elab_Term_throwError___rarg(x_3, x_204, x_4, x_5); +x_178 = l_Lean_Elab_Term_withIncRecDepth___rarg___closed__2; +x_179 = l_Lean_Elab_Term_throwError___rarg(x_3, x_178, x_4, x_5); lean_dec(x_3); -x_206 = !lean_is_exclusive(x_205); -if (x_206 == 0) +x_180 = !lean_is_exclusive(x_179); +if (x_180 == 0) { -return x_205; +return x_179; } else { -lean_object* x_207; lean_object* x_208; lean_object* x_209; -x_207 = lean_ctor_get(x_205, 0); -x_208 = lean_ctor_get(x_205, 1); -lean_inc(x_208); -lean_inc(x_207); -lean_dec(x_205); -x_209 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_209, 0, x_207); -lean_ctor_set(x_209, 1, x_208); -return x_209; +lean_object* x_181; lean_object* x_182; lean_object* x_183; +x_181 = lean_ctor_get(x_179, 0); +x_182 = lean_ctor_get(x_179, 1); +lean_inc(x_182); +lean_inc(x_181); +lean_dec(x_179); +x_183 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_183, 0, x_181); +lean_ctor_set(x_183, 1, x_182); +return x_183; } } -block_200: +block_174: { uint8_t x_24; x_24 = !lean_is_exclusive(x_11); if (x_24 == 0) { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_89; +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; x_25 = lean_ctor_get(x_11, 3); x_26 = lean_nat_add(x_25, x_8); lean_dec(x_25); @@ -12019,55 +11936,33 @@ lean_ctor_set(x_27, 8, x_19); lean_ctor_set(x_27, 9, x_7); lean_ctor_set_uint8(x_27, sizeof(void*)*10, x_20); lean_ctor_set_uint8(x_27, sizeof(void*)*10 + 1, x_21); -if (lean_obj_tag(x_3) == 1) +x_89 = l_Lean_Elab_Term_getOptions(x_27, x_23); +x_90 = lean_ctor_get(x_89, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_89, 1); +lean_inc(x_91); +lean_dec(x_89); +x_92 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3; +x_93 = l_Lean_checkTraceOption(x_90, x_92); +lean_dec(x_90); +if (x_93 == 0) { -lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; -x_101 = l_Lean_Elab_Term_getOptions(x_27, x_23); -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); -x_104 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3; -x_105 = l_Lean_checkTraceOption(x_102, x_104); -lean_dec(x_102); -if (x_105 == 0) -{ -x_28 = x_103; +x_28 = x_91; goto block_88; } else { -lean_object* x_106; lean_object* x_107; lean_object* x_108; +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_inc(x_3); -x_106 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_106, 0, x_3); -x_107 = l_Lean_Elab_Term_logTrace(x_104, x_3, x_106, x_27, x_103); -x_108 = lean_ctor_get(x_107, 1); -lean_inc(x_108); -lean_dec(x_107); -x_28 = x_108; +x_94 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_94, 0, x_3); +x_95 = l_Lean_Elab_Term_logTrace(x_92, x_3, x_94, x_27, x_91); +x_96 = lean_ctor_get(x_95, 1); +lean_inc(x_96); +lean_dec(x_95); +x_28 = x_96; goto block_88; } -} -else -{ -lean_object* x_109; -lean_dec(x_11); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_1); -x_109 = lean_box(0); -x_89 = x_109; -goto block_100; -} block_88: { 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; @@ -12302,51 +12197,29 @@ x_87 = l___private_Init_Lean_Elab_Term_8__elabTermUsing___main(x_28, x_3, x_1, x return x_87; } } -block_100: -{ -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_dec(x_89); -x_90 = lean_box(0); -x_91 = lean_unsigned_to_nat(0u); -lean_inc(x_3); -x_92 = l_Lean_Syntax_formatStxAux___main(x_90, x_91, x_3); -x_93 = l_Lean_Options_empty; -x_94 = l_Lean_Format_pretty(x_92, x_93); -x_95 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_95, 0, x_94); -x_96 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_96, 0, x_95); -x_97 = l_Lean_Elab_Term_withNode___rarg___closed__3; -x_98 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_Elab_Term_throwError___rarg(x_3, x_98, x_27, x_23); -lean_dec(x_3); -return x_99; -} } else { -lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_179; -x_110 = lean_ctor_get(x_11, 0); -x_111 = lean_ctor_get(x_11, 1); -x_112 = lean_ctor_get(x_11, 2); -x_113 = lean_ctor_get(x_11, 3); -x_114 = lean_ctor_get(x_11, 4); -lean_inc(x_114); -lean_inc(x_113); -lean_inc(x_112); -lean_inc(x_111); -lean_inc(x_110); +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_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; uint8_t x_170; +x_97 = lean_ctor_get(x_11, 0); +x_98 = lean_ctor_get(x_11, 1); +x_99 = lean_ctor_get(x_11, 2); +x_100 = lean_ctor_get(x_11, 3); +x_101 = lean_ctor_get(x_11, 4); +lean_inc(x_101); +lean_inc(x_100); +lean_inc(x_99); +lean_inc(x_98); +lean_inc(x_97); lean_dec(x_11); -x_115 = lean_nat_add(x_113, x_8); -lean_dec(x_113); -x_116 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_116, 0, x_110); -lean_ctor_set(x_116, 1, x_111); -lean_ctor_set(x_116, 2, x_112); -lean_ctor_set(x_116, 3, x_115); -lean_ctor_set(x_116, 4, x_114); +x_102 = lean_nat_add(x_100, x_8); +lean_dec(x_100); +x_103 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_103, 0, x_97); +lean_ctor_set(x_103, 1, x_98); +lean_ctor_set(x_103, 2, x_99); +lean_ctor_set(x_103, 3, x_102); +lean_ctor_set(x_103, 4, x_101); lean_inc(x_7); lean_inc(x_19); lean_inc(x_18); @@ -12356,55 +12229,106 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); -lean_inc(x_116); -x_117 = lean_alloc_ctor(0, 10, 2); -lean_ctor_set(x_117, 0, x_116); -lean_ctor_set(x_117, 1, x_12); -lean_ctor_set(x_117, 2, x_13); -lean_ctor_set(x_117, 3, x_14); -lean_ctor_set(x_117, 4, x_15); -lean_ctor_set(x_117, 5, x_16); -lean_ctor_set(x_117, 6, x_17); -lean_ctor_set(x_117, 7, x_18); -lean_ctor_set(x_117, 8, x_19); -lean_ctor_set(x_117, 9, x_7); -lean_ctor_set_uint8(x_117, sizeof(void*)*10, x_20); -lean_ctor_set_uint8(x_117, sizeof(void*)*10 + 1, x_21); -if (lean_obj_tag(x_3) == 1) +lean_inc(x_103); +x_104 = lean_alloc_ctor(0, 10, 2); +lean_ctor_set(x_104, 0, x_103); +lean_ctor_set(x_104, 1, x_12); +lean_ctor_set(x_104, 2, x_13); +lean_ctor_set(x_104, 3, x_14); +lean_ctor_set(x_104, 4, x_15); +lean_ctor_set(x_104, 5, x_16); +lean_ctor_set(x_104, 6, x_17); +lean_ctor_set(x_104, 7, x_18); +lean_ctor_set(x_104, 8, x_19); +lean_ctor_set(x_104, 9, x_7); +lean_ctor_set_uint8(x_104, sizeof(void*)*10, x_20); +lean_ctor_set_uint8(x_104, sizeof(void*)*10 + 1, x_21); +x_166 = l_Lean_Elab_Term_getOptions(x_104, x_23); +x_167 = lean_ctor_get(x_166, 0); +lean_inc(x_167); +x_168 = lean_ctor_get(x_166, 1); +lean_inc(x_168); +lean_dec(x_166); +x_169 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3; +x_170 = l_Lean_checkTraceOption(x_167, x_169); +lean_dec(x_167); +if (x_170 == 0) { -lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; uint8_t x_195; -x_191 = l_Lean_Elab_Term_getOptions(x_117, x_23); -x_192 = lean_ctor_get(x_191, 0); -lean_inc(x_192); -x_193 = lean_ctor_get(x_191, 1); -lean_inc(x_193); -lean_dec(x_191); -x_194 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3; -x_195 = l_Lean_checkTraceOption(x_192, x_194); -lean_dec(x_192); -if (x_195 == 0) -{ -x_118 = x_193; -goto block_178; +x_105 = x_168; +goto block_165; } else { -lean_object* x_196; lean_object* x_197; lean_object* x_198; +lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_inc(x_3); -x_196 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_196, 0, x_3); -x_197 = l_Lean_Elab_Term_logTrace(x_194, x_3, x_196, x_117, x_193); -x_198 = lean_ctor_get(x_197, 1); -lean_inc(x_198); -lean_dec(x_197); -x_118 = x_198; -goto block_178; +x_171 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_171, 0, x_3); +x_172 = l_Lean_Elab_Term_logTrace(x_169, x_3, x_171, x_104, x_168); +x_173 = lean_ctor_get(x_172, 1); +lean_inc(x_173); +lean_dec(x_172); +x_105 = x_173; +goto block_165; } -} -else +block_165: { -lean_object* x_199; -lean_dec(x_116); +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; +x_106 = l_Lean_Elab_Term_termElabAttribute; +x_107 = lean_ctor_get(x_106, 1); +lean_inc(x_107); +x_108 = lean_ctor_get(x_105, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_108, 0); +lean_inc(x_109); +lean_dec(x_108); +x_110 = l_Lean_PersistentEnvExtension_getState___rarg(x_107, x_109); +lean_dec(x_109); +lean_dec(x_107); +x_111 = lean_ctor_get(x_110, 1); +lean_inc(x_111); +lean_dec(x_110); +lean_inc(x_3); +x_112 = l_Lean_Syntax_getKind(x_3); +x_113 = l_Lean_SMap_find_x3f___at_Lean_Elab_Term_elabTermAux___main___spec__1(x_111, x_112); +if (lean_obj_tag(x_113) == 0) +{ +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_125; lean_object* x_126; 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; +x_114 = l_Lean_Elab_Term_getEnv___rarg(x_105); +x_115 = lean_ctor_get(x_114, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_114, 1); +lean_inc(x_116); +if (lean_is_exclusive(x_114)) { + lean_ctor_release(x_114, 0); + lean_ctor_release(x_114, 1); + x_117 = x_114; +} else { + lean_dec_ref(x_114); + x_117 = lean_box(0); +} +x_143 = l_Lean_Elab_Term_getCurrMacroScope(x_104, x_116); +x_144 = lean_ctor_get(x_143, 0); +lean_inc(x_144); +x_145 = lean_ctor_get(x_143, 1); +lean_inc(x_145); +lean_dec(x_143); +x_146 = l_Lean_Elab_Term_getEnv___rarg(x_145); +x_147 = lean_ctor_get(x_146, 0); +lean_inc(x_147); +x_148 = lean_ctor_get(x_146, 1); +lean_inc(x_148); +lean_dec(x_146); +x_149 = lean_environment_main_module(x_147); +x_150 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_150, 0, x_149); +lean_ctor_set(x_150, 1, x_144); +lean_inc(x_3); +x_151 = l_Lean_Elab_getMacros(x_115, x_3, x_150); +lean_dec(x_115); +if (lean_obj_tag(x_151) == 0) +{ +lean_object* x_152; +lean_dec(x_103); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -12415,229 +12339,156 @@ lean_dec(x_13); lean_dec(x_12); lean_dec(x_7); lean_dec(x_1); -x_199 = lean_box(0); -x_179 = x_199; -goto block_190; -} -block_178: +x_152 = lean_ctor_get(x_151, 0); +lean_inc(x_152); +lean_dec(x_151); +if (lean_obj_tag(x_152) == 0) { -lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; -x_119 = l_Lean_Elab_Term_termElabAttribute; -x_120 = lean_ctor_get(x_119, 1); -lean_inc(x_120); -x_121 = lean_ctor_get(x_118, 0); -lean_inc(x_121); -x_122 = lean_ctor_get(x_121, 0); -lean_inc(x_122); -lean_dec(x_121); -x_123 = l_Lean_PersistentEnvExtension_getState___rarg(x_120, x_122); -lean_dec(x_122); -lean_dec(x_120); -x_124 = lean_ctor_get(x_123, 1); -lean_inc(x_124); -lean_dec(x_123); -lean_inc(x_3); -x_125 = l_Lean_Syntax_getKind(x_3); -x_126 = l_Lean_SMap_find_x3f___at_Lean_Elab_Term_elabTermAux___main___spec__1(x_124, x_125); -if (lean_obj_tag(x_126) == 0) -{ -lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_138; lean_object* x_139; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; -x_127 = l_Lean_Elab_Term_getEnv___rarg(x_118); -x_128 = lean_ctor_get(x_127, 0); -lean_inc(x_128); -x_129 = lean_ctor_get(x_127, 1); -lean_inc(x_129); -if (lean_is_exclusive(x_127)) { - lean_ctor_release(x_127, 0); - lean_ctor_release(x_127, 1); - x_130 = x_127; -} else { - lean_dec_ref(x_127); - x_130 = lean_box(0); -} -x_156 = l_Lean_Elab_Term_getCurrMacroScope(x_117, x_129); +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; +x_153 = lean_ctor_get(x_152, 0); +lean_inc(x_153); +lean_dec(x_152); +x_154 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_154, 0, x_153); +x_155 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_155, 0, x_154); +lean_inc(x_104); +x_156 = l_Lean_Elab_Term_throwError___rarg(x_3, x_155, x_104, x_148); x_157 = lean_ctor_get(x_156, 0); lean_inc(x_157); x_158 = lean_ctor_get(x_156, 1); lean_inc(x_158); lean_dec(x_156); -x_159 = l_Lean_Elab_Term_getEnv___rarg(x_158); +x_125 = x_157; +x_126 = x_158; +goto block_142; +} +else +{ +lean_object* x_159; lean_object* x_160; lean_object* x_161; +x_159 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_148); x_160 = lean_ctor_get(x_159, 0); lean_inc(x_160); x_161 = lean_ctor_get(x_159, 1); lean_inc(x_161); lean_dec(x_159); -x_162 = lean_environment_main_module(x_160); -x_163 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_163, 0, x_162); -lean_ctor_set(x_163, 1, x_157); -lean_inc(x_3); -x_164 = l_Lean_Elab_getMacros(x_128, x_3, x_163); -lean_dec(x_128); -if (lean_obj_tag(x_164) == 0) -{ -lean_object* x_165; -lean_dec(x_116); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_1); -x_165 = lean_ctor_get(x_164, 0); -lean_inc(x_165); -lean_dec(x_164); -if (lean_obj_tag(x_165) == 0) -{ -lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; -x_166 = lean_ctor_get(x_165, 0); -lean_inc(x_166); -lean_dec(x_165); -x_167 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_167, 0, x_166); -x_168 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_168, 0, x_167); -lean_inc(x_117); -x_169 = l_Lean_Elab_Term_throwError___rarg(x_3, x_168, x_117, x_161); -x_170 = lean_ctor_get(x_169, 0); -lean_inc(x_170); -x_171 = lean_ctor_get(x_169, 1); -lean_inc(x_171); -lean_dec(x_169); -x_138 = x_170; -x_139 = x_171; -goto block_155; -} -else -{ -lean_object* x_172; lean_object* x_173; lean_object* x_174; -x_172 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_161); -x_173 = lean_ctor_get(x_172, 0); -lean_inc(x_173); -x_174 = lean_ctor_get(x_172, 1); -lean_inc(x_174); -lean_dec(x_172); -x_138 = x_173; -x_139 = x_174; -goto block_155; +x_125 = x_160; +x_126 = x_161; +goto block_142; } } else { -lean_object* x_175; -lean_dec(x_130); -lean_dec(x_125); +lean_object* x_162; lean_dec(x_117); -x_175 = lean_ctor_get(x_164, 0); -lean_inc(x_175); -lean_dec(x_164); -x_131 = x_175; -x_132 = x_161; -goto block_137; +lean_dec(x_112); +lean_dec(x_104); +x_162 = lean_ctor_get(x_151, 0); +lean_inc(x_162); +lean_dec(x_151); +x_118 = x_162; +x_119 = x_148; +goto block_124; } -block_137: +block_124: { -lean_object* x_133; lean_object* x_134; lean_object* x_135; -lean_inc(x_131); -x_133 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_133, 0, x_3); -lean_ctor_set(x_133, 1, x_131); -x_134 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_134, 0, x_133); -lean_ctor_set(x_134, 1, x_19); -x_135 = lean_alloc_ctor(0, 10, 2); -lean_ctor_set(x_135, 0, x_116); -lean_ctor_set(x_135, 1, x_12); -lean_ctor_set(x_135, 2, x_13); -lean_ctor_set(x_135, 3, x_14); -lean_ctor_set(x_135, 4, x_15); -lean_ctor_set(x_135, 5, x_16); -lean_ctor_set(x_135, 6, x_17); -lean_ctor_set(x_135, 7, x_18); -lean_ctor_set(x_135, 8, x_134); -lean_ctor_set(x_135, 9, x_7); -lean_ctor_set_uint8(x_135, sizeof(void*)*10, x_20); -lean_ctor_set_uint8(x_135, sizeof(void*)*10 + 1, x_21); -x_3 = x_131; -x_4 = x_135; -x_5 = x_132; +lean_object* x_120; lean_object* x_121; lean_object* x_122; +lean_inc(x_118); +x_120 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_120, 0, x_3); +lean_ctor_set(x_120, 1, x_118); +x_121 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_121, 0, x_120); +lean_ctor_set(x_121, 1, x_19); +x_122 = lean_alloc_ctor(0, 10, 2); +lean_ctor_set(x_122, 0, x_103); +lean_ctor_set(x_122, 1, x_12); +lean_ctor_set(x_122, 2, x_13); +lean_ctor_set(x_122, 3, x_14); +lean_ctor_set(x_122, 4, x_15); +lean_ctor_set(x_122, 5, x_16); +lean_ctor_set(x_122, 6, x_17); +lean_ctor_set(x_122, 7, x_18); +lean_ctor_set(x_122, 8, x_121); +lean_ctor_set(x_122, 9, x_7); +lean_ctor_set_uint8(x_122, sizeof(void*)*10, x_20); +lean_ctor_set_uint8(x_122, sizeof(void*)*10 + 1, x_21); +x_3 = x_118; +x_4 = x_122; +x_5 = x_119; goto _start; } -block_155: +block_142: { -lean_object* x_140; -x_140 = lean_ctor_get(x_138, 0); -lean_inc(x_140); -if (lean_obj_tag(x_140) == 0) +lean_object* x_127; +x_127 = lean_ctor_get(x_125, 0); +lean_inc(x_127); +if (lean_obj_tag(x_127) == 0) { -lean_object* x_141; -lean_dec(x_140); +lean_object* x_128; +lean_dec(x_127); +lean_dec(x_112); +lean_dec(x_104); +lean_dec(x_3); +if (lean_is_scalar(x_117)) { + x_128 = lean_alloc_ctor(1, 2, 0); +} else { + x_128 = x_117; + lean_ctor_set_tag(x_128, 1); +} +lean_ctor_set(x_128, 0, x_125); +lean_ctor_set(x_128, 1, x_126); +return x_128; +} +else +{ +lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_dec(x_125); lean_dec(x_117); +x_129 = l_Lean_Name_toString___closed__1; +x_130 = l_Lean_Name_toStringWithSep___main(x_129, x_112); +x_131 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_131, 0, x_130); +x_132 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_132, 0, x_131); +x_133 = l_Lean_Elab_Term_elabTermAux___main___closed__3; +x_134 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_132); +x_135 = l_Lean_Elab_Term_elabTermAux___main___closed__6; +x_136 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_136, 0, x_134); +lean_ctor_set(x_136, 1, x_135); +x_137 = l_Lean_Elab_Term_throwError___rarg(x_3, x_136, x_104, x_126); lean_dec(x_3); -if (lean_is_scalar(x_130)) { +x_138 = lean_ctor_get(x_137, 0); +lean_inc(x_138); +x_139 = lean_ctor_get(x_137, 1); +lean_inc(x_139); +if (lean_is_exclusive(x_137)) { + lean_ctor_release(x_137, 0); + lean_ctor_release(x_137, 1); + x_140 = x_137; +} else { + lean_dec_ref(x_137); + x_140 = lean_box(0); +} +if (lean_is_scalar(x_140)) { x_141 = lean_alloc_ctor(1, 2, 0); } else { - x_141 = x_130; - lean_ctor_set_tag(x_141, 1); + x_141 = x_140; } lean_ctor_set(x_141, 0, x_138); lean_ctor_set(x_141, 1, x_139); return x_141; } -else -{ -lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; -lean_dec(x_138); -lean_dec(x_130); -x_142 = l_Lean_Name_toString___closed__1; -x_143 = l_Lean_Name_toStringWithSep___main(x_142, x_125); -x_144 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_144, 0, x_143); -x_145 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_145, 0, x_144); -x_146 = l_Lean_Elab_Term_elabTermAux___main___closed__3; -x_147 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_147, 0, x_146); -lean_ctor_set(x_147, 1, x_145); -x_148 = l_Lean_Elab_Term_elabTermAux___main___closed__6; -x_149 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_149, 0, x_147); -lean_ctor_set(x_149, 1, x_148); -x_150 = l_Lean_Elab_Term_throwError___rarg(x_3, x_149, x_117, x_139); -lean_dec(x_3); -x_151 = lean_ctor_get(x_150, 0); -lean_inc(x_151); -x_152 = lean_ctor_get(x_150, 1); -lean_inc(x_152); -if (lean_is_exclusive(x_150)) { - lean_ctor_release(x_150, 0); - lean_ctor_release(x_150, 1); - x_153 = x_150; -} else { - lean_dec_ref(x_150); - x_153 = lean_box(0); -} -if (lean_is_scalar(x_153)) { - x_154 = lean_alloc_ctor(1, 2, 0); -} else { - x_154 = x_153; -} -lean_ctor_set(x_154, 0, x_151); -lean_ctor_set(x_154, 1, x_152); -return x_154; -} } } else { -lean_object* x_176; lean_object* x_177; -lean_dec(x_125); -lean_dec(x_116); +lean_object* x_163; lean_object* x_164; +lean_dec(x_112); +lean_dec(x_103); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -12647,551 +12498,485 @@ lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_7); -x_176 = lean_ctor_get(x_126, 0); -lean_inc(x_176); -lean_dec(x_126); -lean_inc(x_118); -x_177 = l___private_Init_Lean_Elab_Term_8__elabTermUsing___main(x_118, x_3, x_1, x_2, x_176, x_117, x_118); -return x_177; +x_163 = lean_ctor_get(x_113, 0); +lean_inc(x_163); +lean_dec(x_113); +lean_inc(x_105); +x_164 = l___private_Init_Lean_Elab_Term_8__elabTermUsing___main(x_105, x_3, x_1, x_2, x_163, x_104, x_105); +return x_164; } } -block_190: -{ -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_dec(x_179); -x_180 = lean_box(0); -x_181 = lean_unsigned_to_nat(0u); -lean_inc(x_3); -x_182 = l_Lean_Syntax_formatStxAux___main(x_180, x_181, x_3); -x_183 = l_Lean_Options_empty; -x_184 = l_Lean_Format_pretty(x_182, x_183); -x_185 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_185, 0, x_184); -x_186 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_186, 0, x_185); -x_187 = l_Lean_Elab_Term_withNode___rarg___closed__3; -x_188 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_188, 0, x_187); -lean_ctor_set(x_188, 1, x_186); -x_189 = l_Lean_Elab_Term_throwError___rarg(x_3, x_188, x_117, x_23); -lean_dec(x_3); -return x_189; -} } } } else { -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; uint8_t x_219; uint8_t x_220; lean_object* x_221; lean_object* x_222; lean_object* x_315; lean_object* x_316; uint8_t x_317; -x_210 = lean_ctor_get(x_4, 0); -x_211 = lean_ctor_get(x_4, 1); -x_212 = lean_ctor_get(x_4, 2); -x_213 = lean_ctor_get(x_4, 3); -x_214 = lean_ctor_get(x_4, 4); -x_215 = lean_ctor_get(x_4, 5); -x_216 = lean_ctor_get(x_4, 6); -x_217 = lean_ctor_get(x_4, 7); -x_218 = lean_ctor_get(x_4, 8); -x_219 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_220 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -lean_inc(x_218); -lean_inc(x_217); -lean_inc(x_216); -lean_inc(x_215); -lean_inc(x_214); -lean_inc(x_213); -lean_inc(x_212); -lean_inc(x_211); -lean_inc(x_210); +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; uint8_t x_193; uint8_t x_194; lean_object* x_195; lean_object* x_196; lean_object* x_276; lean_object* x_277; uint8_t x_278; +x_184 = lean_ctor_get(x_4, 0); +x_185 = lean_ctor_get(x_4, 1); +x_186 = lean_ctor_get(x_4, 2); +x_187 = lean_ctor_get(x_4, 3); +x_188 = lean_ctor_get(x_4, 4); +x_189 = lean_ctor_get(x_4, 5); +x_190 = lean_ctor_get(x_4, 6); +x_191 = lean_ctor_get(x_4, 7); +x_192 = lean_ctor_get(x_4, 8); +x_193 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); +x_194 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); +lean_inc(x_192); +lean_inc(x_191); +lean_inc(x_190); +lean_inc(x_189); +lean_inc(x_188); +lean_inc(x_187); +lean_inc(x_186); +lean_inc(x_185); +lean_inc(x_184); lean_dec(x_4); lean_inc(x_7); -lean_inc(x_218); -lean_inc(x_217); -lean_inc(x_216); -lean_inc(x_215); -lean_inc(x_214); -lean_inc(x_213); -lean_inc(x_212); -lean_inc(x_211); -lean_inc(x_210); -x_221 = lean_alloc_ctor(0, 10, 2); -lean_ctor_set(x_221, 0, x_210); -lean_ctor_set(x_221, 1, x_211); -lean_ctor_set(x_221, 2, x_212); -lean_ctor_set(x_221, 3, x_213); -lean_ctor_set(x_221, 4, x_214); -lean_ctor_set(x_221, 5, x_215); -lean_ctor_set(x_221, 6, x_216); -lean_ctor_set(x_221, 7, x_217); -lean_ctor_set(x_221, 8, x_218); -lean_ctor_set(x_221, 9, x_7); -lean_ctor_set_uint8(x_221, sizeof(void*)*10, x_219); -lean_ctor_set_uint8(x_221, sizeof(void*)*10 + 1, x_220); -x_315 = lean_ctor_get(x_210, 3); -lean_inc(x_315); -x_316 = lean_ctor_get(x_210, 4); -lean_inc(x_316); -x_317 = lean_nat_dec_eq(x_315, x_316); -lean_dec(x_316); -lean_dec(x_315); -if (x_317 == 0) +lean_inc(x_192); +lean_inc(x_191); +lean_inc(x_190); +lean_inc(x_189); +lean_inc(x_188); +lean_inc(x_187); +lean_inc(x_186); +lean_inc(x_185); +lean_inc(x_184); +x_195 = lean_alloc_ctor(0, 10, 2); +lean_ctor_set(x_195, 0, x_184); +lean_ctor_set(x_195, 1, x_185); +lean_ctor_set(x_195, 2, x_186); +lean_ctor_set(x_195, 3, x_187); +lean_ctor_set(x_195, 4, x_188); +lean_ctor_set(x_195, 5, x_189); +lean_ctor_set(x_195, 6, x_190); +lean_ctor_set(x_195, 7, x_191); +lean_ctor_set(x_195, 8, x_192); +lean_ctor_set(x_195, 9, x_7); +lean_ctor_set_uint8(x_195, sizeof(void*)*10, x_193); +lean_ctor_set_uint8(x_195, sizeof(void*)*10 + 1, x_194); +x_276 = lean_ctor_get(x_184, 3); +lean_inc(x_276); +x_277 = lean_ctor_get(x_184, 4); +lean_inc(x_277); +x_278 = lean_nat_dec_eq(x_276, x_277); +lean_dec(x_277); +lean_dec(x_276); +if (x_278 == 0) { -lean_dec(x_221); -x_222 = x_5; -goto block_314; +lean_dec(x_195); +x_196 = x_5; +goto block_275; } else { -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_dec(x_218); -lean_dec(x_217); -lean_dec(x_216); -lean_dec(x_215); -lean_dec(x_214); -lean_dec(x_213); -lean_dec(x_212); -lean_dec(x_211); -lean_dec(x_210); +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_dec(x_192); +lean_dec(x_191); +lean_dec(x_190); +lean_dec(x_189); +lean_dec(x_188); +lean_dec(x_187); +lean_dec(x_186); +lean_dec(x_185); +lean_dec(x_184); lean_dec(x_7); lean_dec(x_1); -x_318 = l_Lean_Elab_Term_withIncRecDepth___rarg___closed__2; -x_319 = l_Lean_Elab_Term_throwError___rarg(x_3, x_318, x_221, x_5); +x_279 = l_Lean_Elab_Term_withIncRecDepth___rarg___closed__2; +x_280 = l_Lean_Elab_Term_throwError___rarg(x_3, x_279, x_195, x_5); lean_dec(x_3); -x_320 = lean_ctor_get(x_319, 0); -lean_inc(x_320); -x_321 = lean_ctor_get(x_319, 1); -lean_inc(x_321); -if (lean_is_exclusive(x_319)) { - lean_ctor_release(x_319, 0); - lean_ctor_release(x_319, 1); - x_322 = x_319; +x_281 = lean_ctor_get(x_280, 0); +lean_inc(x_281); +x_282 = lean_ctor_get(x_280, 1); +lean_inc(x_282); +if (lean_is_exclusive(x_280)) { + lean_ctor_release(x_280, 0); + lean_ctor_release(x_280, 1); + x_283 = x_280; } else { - lean_dec_ref(x_319); - x_322 = lean_box(0); + lean_dec_ref(x_280); + x_283 = lean_box(0); } -if (lean_is_scalar(x_322)) { - x_323 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_283)) { + x_284 = lean_alloc_ctor(1, 2, 0); } else { - x_323 = x_322; + x_284 = x_283; } -lean_ctor_set(x_323, 0, x_320); -lean_ctor_set(x_323, 1, x_321); -return x_323; +lean_ctor_set(x_284, 0, x_281); +lean_ctor_set(x_284, 1, x_282); +return x_284; } -block_314: +block_275: { -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_293; -x_223 = lean_ctor_get(x_210, 0); -lean_inc(x_223); -x_224 = lean_ctor_get(x_210, 1); -lean_inc(x_224); -x_225 = lean_ctor_get(x_210, 2); -lean_inc(x_225); -x_226 = lean_ctor_get(x_210, 3); -lean_inc(x_226); -x_227 = lean_ctor_get(x_210, 4); -lean_inc(x_227); -if (lean_is_exclusive(x_210)) { - lean_ctor_release(x_210, 0); - lean_ctor_release(x_210, 1); - lean_ctor_release(x_210, 2); - lean_ctor_release(x_210, 3); - lean_ctor_release(x_210, 4); - x_228 = x_210; +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_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; uint8_t x_271; +x_197 = lean_ctor_get(x_184, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_184, 1); +lean_inc(x_198); +x_199 = lean_ctor_get(x_184, 2); +lean_inc(x_199); +x_200 = lean_ctor_get(x_184, 3); +lean_inc(x_200); +x_201 = lean_ctor_get(x_184, 4); +lean_inc(x_201); +if (lean_is_exclusive(x_184)) { + lean_ctor_release(x_184, 0); + lean_ctor_release(x_184, 1); + lean_ctor_release(x_184, 2); + lean_ctor_release(x_184, 3); + lean_ctor_release(x_184, 4); + x_202 = x_184; } else { - lean_dec_ref(x_210); - x_228 = lean_box(0); + lean_dec_ref(x_184); + x_202 = lean_box(0); } -x_229 = lean_nat_add(x_226, x_8); -lean_dec(x_226); -if (lean_is_scalar(x_228)) { - x_230 = lean_alloc_ctor(0, 5, 0); +x_203 = lean_nat_add(x_200, x_8); +lean_dec(x_200); +if (lean_is_scalar(x_202)) { + x_204 = lean_alloc_ctor(0, 5, 0); } else { - x_230 = x_228; + x_204 = x_202; } -lean_ctor_set(x_230, 0, x_223); -lean_ctor_set(x_230, 1, x_224); -lean_ctor_set(x_230, 2, x_225); -lean_ctor_set(x_230, 3, x_229); -lean_ctor_set(x_230, 4, x_227); +lean_ctor_set(x_204, 0, x_197); +lean_ctor_set(x_204, 1, x_198); +lean_ctor_set(x_204, 2, x_199); +lean_ctor_set(x_204, 3, x_203); +lean_ctor_set(x_204, 4, x_201); lean_inc(x_7); -lean_inc(x_218); -lean_inc(x_217); -lean_inc(x_216); -lean_inc(x_215); -lean_inc(x_214); -lean_inc(x_213); -lean_inc(x_212); -lean_inc(x_211); -lean_inc(x_230); -x_231 = lean_alloc_ctor(0, 10, 2); -lean_ctor_set(x_231, 0, x_230); -lean_ctor_set(x_231, 1, x_211); -lean_ctor_set(x_231, 2, x_212); -lean_ctor_set(x_231, 3, x_213); -lean_ctor_set(x_231, 4, x_214); -lean_ctor_set(x_231, 5, x_215); -lean_ctor_set(x_231, 6, x_216); -lean_ctor_set(x_231, 7, x_217); -lean_ctor_set(x_231, 8, x_218); -lean_ctor_set(x_231, 9, x_7); -lean_ctor_set_uint8(x_231, sizeof(void*)*10, x_219); -lean_ctor_set_uint8(x_231, sizeof(void*)*10 + 1, x_220); -if (lean_obj_tag(x_3) == 1) +lean_inc(x_192); +lean_inc(x_191); +lean_inc(x_190); +lean_inc(x_189); +lean_inc(x_188); +lean_inc(x_187); +lean_inc(x_186); +lean_inc(x_185); +lean_inc(x_204); +x_205 = lean_alloc_ctor(0, 10, 2); +lean_ctor_set(x_205, 0, x_204); +lean_ctor_set(x_205, 1, x_185); +lean_ctor_set(x_205, 2, x_186); +lean_ctor_set(x_205, 3, x_187); +lean_ctor_set(x_205, 4, x_188); +lean_ctor_set(x_205, 5, x_189); +lean_ctor_set(x_205, 6, x_190); +lean_ctor_set(x_205, 7, x_191); +lean_ctor_set(x_205, 8, x_192); +lean_ctor_set(x_205, 9, x_7); +lean_ctor_set_uint8(x_205, sizeof(void*)*10, x_193); +lean_ctor_set_uint8(x_205, sizeof(void*)*10 + 1, x_194); +x_267 = l_Lean_Elab_Term_getOptions(x_205, x_196); +x_268 = lean_ctor_get(x_267, 0); +lean_inc(x_268); +x_269 = lean_ctor_get(x_267, 1); +lean_inc(x_269); +lean_dec(x_267); +x_270 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3; +x_271 = l_Lean_checkTraceOption(x_268, x_270); +lean_dec(x_268); +if (x_271 == 0) { -lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; uint8_t x_309; -x_305 = l_Lean_Elab_Term_getOptions(x_231, x_222); -x_306 = lean_ctor_get(x_305, 0); -lean_inc(x_306); -x_307 = lean_ctor_get(x_305, 1); -lean_inc(x_307); -lean_dec(x_305); -x_308 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3; -x_309 = l_Lean_checkTraceOption(x_306, x_308); -lean_dec(x_306); -if (x_309 == 0) -{ -x_232 = x_307; -goto block_292; +x_206 = x_269; +goto block_266; } else { -lean_object* x_310; lean_object* x_311; lean_object* x_312; +lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_inc(x_3); -x_310 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_310, 0, x_3); -x_311 = l_Lean_Elab_Term_logTrace(x_308, x_3, x_310, x_231, x_307); -x_312 = lean_ctor_get(x_311, 1); -lean_inc(x_312); -lean_dec(x_311); -x_232 = x_312; -goto block_292; -} -} -else -{ -lean_object* x_313; -lean_dec(x_230); -lean_dec(x_218); -lean_dec(x_217); -lean_dec(x_216); -lean_dec(x_215); -lean_dec(x_214); -lean_dec(x_213); -lean_dec(x_212); -lean_dec(x_211); -lean_dec(x_7); -lean_dec(x_1); -x_313 = lean_box(0); -x_293 = x_313; -goto block_304; -} -block_292: -{ -lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; -x_233 = l_Lean_Elab_Term_termElabAttribute; -x_234 = lean_ctor_get(x_233, 1); -lean_inc(x_234); -x_235 = lean_ctor_get(x_232, 0); -lean_inc(x_235); -x_236 = lean_ctor_get(x_235, 0); -lean_inc(x_236); -lean_dec(x_235); -x_237 = l_Lean_PersistentEnvExtension_getState___rarg(x_234, x_236); -lean_dec(x_236); -lean_dec(x_234); -x_238 = lean_ctor_get(x_237, 1); -lean_inc(x_238); -lean_dec(x_237); -lean_inc(x_3); -x_239 = l_Lean_Syntax_getKind(x_3); -x_240 = l_Lean_SMap_find_x3f___at_Lean_Elab_Term_elabTermAux___main___spec__1(x_238, x_239); -if (lean_obj_tag(x_240) == 0) -{ -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_252; lean_object* x_253; 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; -x_241 = l_Lean_Elab_Term_getEnv___rarg(x_232); -x_242 = lean_ctor_get(x_241, 0); -lean_inc(x_242); -x_243 = lean_ctor_get(x_241, 1); -lean_inc(x_243); -if (lean_is_exclusive(x_241)) { - lean_ctor_release(x_241, 0); - lean_ctor_release(x_241, 1); - x_244 = x_241; -} else { - lean_dec_ref(x_241); - x_244 = lean_box(0); -} -x_270 = l_Lean_Elab_Term_getCurrMacroScope(x_231, x_243); -x_271 = lean_ctor_get(x_270, 0); -lean_inc(x_271); -x_272 = lean_ctor_get(x_270, 1); -lean_inc(x_272); -lean_dec(x_270); -x_273 = l_Lean_Elab_Term_getEnv___rarg(x_272); -x_274 = lean_ctor_get(x_273, 0); +x_272 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_272, 0, x_3); +x_273 = l_Lean_Elab_Term_logTrace(x_270, x_3, x_272, x_205, x_269); +x_274 = lean_ctor_get(x_273, 1); lean_inc(x_274); -x_275 = lean_ctor_get(x_273, 1); -lean_inc(x_275); lean_dec(x_273); -x_276 = lean_environment_main_module(x_274); -x_277 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_277, 0, x_276); -lean_ctor_set(x_277, 1, x_271); -lean_inc(x_3); -x_278 = l_Lean_Elab_getMacros(x_242, x_3, x_277); -lean_dec(x_242); -if (lean_obj_tag(x_278) == 0) +x_206 = x_274; +goto block_266; +} +block_266: { -lean_object* x_279; -lean_dec(x_230); -lean_dec(x_218); -lean_dec(x_217); -lean_dec(x_216); -lean_dec(x_215); -lean_dec(x_214); -lean_dec(x_213); -lean_dec(x_212); +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; +x_207 = l_Lean_Elab_Term_termElabAttribute; +x_208 = lean_ctor_get(x_207, 1); +lean_inc(x_208); +x_209 = lean_ctor_get(x_206, 0); +lean_inc(x_209); +x_210 = lean_ctor_get(x_209, 0); +lean_inc(x_210); +lean_dec(x_209); +x_211 = l_Lean_PersistentEnvExtension_getState___rarg(x_208, x_210); +lean_dec(x_210); +lean_dec(x_208); +x_212 = lean_ctor_get(x_211, 1); +lean_inc(x_212); lean_dec(x_211); +lean_inc(x_3); +x_213 = l_Lean_Syntax_getKind(x_3); +x_214 = l_Lean_SMap_find_x3f___at_Lean_Elab_Term_elabTermAux___main___spec__1(x_212, x_213); +if (lean_obj_tag(x_214) == 0) +{ +lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_226; lean_object* x_227; 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; +x_215 = l_Lean_Elab_Term_getEnv___rarg(x_206); +x_216 = lean_ctor_get(x_215, 0); +lean_inc(x_216); +x_217 = lean_ctor_get(x_215, 1); +lean_inc(x_217); +if (lean_is_exclusive(x_215)) { + lean_ctor_release(x_215, 0); + lean_ctor_release(x_215, 1); + x_218 = x_215; +} else { + lean_dec_ref(x_215); + x_218 = lean_box(0); +} +x_244 = l_Lean_Elab_Term_getCurrMacroScope(x_205, x_217); +x_245 = lean_ctor_get(x_244, 0); +lean_inc(x_245); +x_246 = lean_ctor_get(x_244, 1); +lean_inc(x_246); +lean_dec(x_244); +x_247 = l_Lean_Elab_Term_getEnv___rarg(x_246); +x_248 = lean_ctor_get(x_247, 0); +lean_inc(x_248); +x_249 = lean_ctor_get(x_247, 1); +lean_inc(x_249); +lean_dec(x_247); +x_250 = lean_environment_main_module(x_248); +x_251 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_251, 0, x_250); +lean_ctor_set(x_251, 1, x_245); +lean_inc(x_3); +x_252 = l_Lean_Elab_getMacros(x_216, x_3, x_251); +lean_dec(x_216); +if (lean_obj_tag(x_252) == 0) +{ +lean_object* x_253; +lean_dec(x_204); +lean_dec(x_192); +lean_dec(x_191); +lean_dec(x_190); +lean_dec(x_189); +lean_dec(x_188); +lean_dec(x_187); +lean_dec(x_186); +lean_dec(x_185); lean_dec(x_7); lean_dec(x_1); -x_279 = lean_ctor_get(x_278, 0); -lean_inc(x_279); -lean_dec(x_278); -if (lean_obj_tag(x_279) == 0) +x_253 = lean_ctor_get(x_252, 0); +lean_inc(x_253); +lean_dec(x_252); +if (lean_obj_tag(x_253) == 0) { -lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; -x_280 = lean_ctor_get(x_279, 0); -lean_inc(x_280); -lean_dec(x_279); -x_281 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_281, 0, x_280); -x_282 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_282, 0, x_281); -lean_inc(x_231); -x_283 = l_Lean_Elab_Term_throwError___rarg(x_3, x_282, x_231, x_275); -x_284 = lean_ctor_get(x_283, 0); -lean_inc(x_284); -x_285 = lean_ctor_get(x_283, 1); -lean_inc(x_285); -lean_dec(x_283); -x_252 = x_284; -x_253 = x_285; -goto block_269; +lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; +x_254 = lean_ctor_get(x_253, 0); +lean_inc(x_254); +lean_dec(x_253); +x_255 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_255, 0, x_254); +x_256 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_256, 0, x_255); +lean_inc(x_205); +x_257 = l_Lean_Elab_Term_throwError___rarg(x_3, x_256, x_205, x_249); +x_258 = lean_ctor_get(x_257, 0); +lean_inc(x_258); +x_259 = lean_ctor_get(x_257, 1); +lean_inc(x_259); +lean_dec(x_257); +x_226 = x_258; +x_227 = x_259; +goto block_243; } else { -lean_object* x_286; lean_object* x_287; lean_object* x_288; -x_286 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_275); -x_287 = lean_ctor_get(x_286, 0); -lean_inc(x_287); -x_288 = lean_ctor_get(x_286, 1); -lean_inc(x_288); -lean_dec(x_286); -x_252 = x_287; -x_253 = x_288; -goto block_269; +lean_object* x_260; lean_object* x_261; lean_object* x_262; +x_260 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_249); +x_261 = lean_ctor_get(x_260, 0); +lean_inc(x_261); +x_262 = lean_ctor_get(x_260, 1); +lean_inc(x_262); +lean_dec(x_260); +x_226 = x_261; +x_227 = x_262; +goto block_243; } } else { -lean_object* x_289; -lean_dec(x_244); -lean_dec(x_239); -lean_dec(x_231); -x_289 = lean_ctor_get(x_278, 0); -lean_inc(x_289); -lean_dec(x_278); -x_245 = x_289; -x_246 = x_275; -goto block_251; +lean_object* x_263; +lean_dec(x_218); +lean_dec(x_213); +lean_dec(x_205); +x_263 = lean_ctor_get(x_252, 0); +lean_inc(x_263); +lean_dec(x_252); +x_219 = x_263; +x_220 = x_249; +goto block_225; } -block_251: +block_225: { -lean_object* x_247; lean_object* x_248; lean_object* x_249; -lean_inc(x_245); -x_247 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_247, 0, x_3); -lean_ctor_set(x_247, 1, x_245); -x_248 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_248, 0, x_247); -lean_ctor_set(x_248, 1, x_218); -x_249 = lean_alloc_ctor(0, 10, 2); -lean_ctor_set(x_249, 0, x_230); -lean_ctor_set(x_249, 1, x_211); -lean_ctor_set(x_249, 2, x_212); -lean_ctor_set(x_249, 3, x_213); -lean_ctor_set(x_249, 4, x_214); -lean_ctor_set(x_249, 5, x_215); -lean_ctor_set(x_249, 6, x_216); -lean_ctor_set(x_249, 7, x_217); -lean_ctor_set(x_249, 8, x_248); -lean_ctor_set(x_249, 9, x_7); -lean_ctor_set_uint8(x_249, sizeof(void*)*10, x_219); -lean_ctor_set_uint8(x_249, sizeof(void*)*10 + 1, x_220); -x_3 = x_245; -x_4 = x_249; -x_5 = x_246; +lean_object* x_221; lean_object* x_222; lean_object* x_223; +lean_inc(x_219); +x_221 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_221, 0, x_3); +lean_ctor_set(x_221, 1, x_219); +x_222 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_222, 0, x_221); +lean_ctor_set(x_222, 1, x_192); +x_223 = lean_alloc_ctor(0, 10, 2); +lean_ctor_set(x_223, 0, x_204); +lean_ctor_set(x_223, 1, x_185); +lean_ctor_set(x_223, 2, x_186); +lean_ctor_set(x_223, 3, x_187); +lean_ctor_set(x_223, 4, x_188); +lean_ctor_set(x_223, 5, x_189); +lean_ctor_set(x_223, 6, x_190); +lean_ctor_set(x_223, 7, x_191); +lean_ctor_set(x_223, 8, x_222); +lean_ctor_set(x_223, 9, x_7); +lean_ctor_set_uint8(x_223, sizeof(void*)*10, x_193); +lean_ctor_set_uint8(x_223, sizeof(void*)*10 + 1, x_194); +x_3 = x_219; +x_4 = x_223; +x_5 = x_220; goto _start; } -block_269: +block_243: { -lean_object* x_254; -x_254 = lean_ctor_get(x_252, 0); -lean_inc(x_254); -if (lean_obj_tag(x_254) == 0) +lean_object* x_228; +x_228 = lean_ctor_get(x_226, 0); +lean_inc(x_228); +if (lean_obj_tag(x_228) == 0) { -lean_object* x_255; -lean_dec(x_254); -lean_dec(x_239); -lean_dec(x_231); -lean_dec(x_3); -if (lean_is_scalar(x_244)) { - x_255 = lean_alloc_ctor(1, 2, 0); -} else { - x_255 = x_244; - lean_ctor_set_tag(x_255, 1); -} -lean_ctor_set(x_255, 0, x_252); -lean_ctor_set(x_255, 1, x_253); -return x_255; -} -else -{ -lean_object* x_256; lean_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_dec(x_252); -lean_dec(x_244); -x_256 = l_Lean_Name_toString___closed__1; -x_257 = l_Lean_Name_toStringWithSep___main(x_256, x_239); -x_258 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_258, 0, x_257); -x_259 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_259, 0, x_258); -x_260 = l_Lean_Elab_Term_elabTermAux___main___closed__3; -x_261 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_261, 0, x_260); -lean_ctor_set(x_261, 1, x_259); -x_262 = l_Lean_Elab_Term_elabTermAux___main___closed__6; -x_263 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_263, 0, x_261); -lean_ctor_set(x_263, 1, x_262); -x_264 = l_Lean_Elab_Term_throwError___rarg(x_3, x_263, x_231, x_253); -lean_dec(x_3); -x_265 = lean_ctor_get(x_264, 0); -lean_inc(x_265); -x_266 = lean_ctor_get(x_264, 1); -lean_inc(x_266); -if (lean_is_exclusive(x_264)) { - lean_ctor_release(x_264, 0); - lean_ctor_release(x_264, 1); - x_267 = x_264; -} else { - lean_dec_ref(x_264); - x_267 = lean_box(0); -} -if (lean_is_scalar(x_267)) { - x_268 = lean_alloc_ctor(1, 2, 0); -} else { - x_268 = x_267; -} -lean_ctor_set(x_268, 0, x_265); -lean_ctor_set(x_268, 1, x_266); -return x_268; -} -} -} -else -{ -lean_object* x_290; lean_object* x_291; -lean_dec(x_239); -lean_dec(x_230); -lean_dec(x_218); -lean_dec(x_217); -lean_dec(x_216); -lean_dec(x_215); -lean_dec(x_214); +lean_object* x_229; +lean_dec(x_228); lean_dec(x_213); -lean_dec(x_212); -lean_dec(x_211); -lean_dec(x_7); -x_290 = lean_ctor_get(x_240, 0); -lean_inc(x_290); -lean_dec(x_240); -lean_inc(x_232); -x_291 = l___private_Init_Lean_Elab_Term_8__elabTermUsing___main(x_232, x_3, x_1, x_2, x_290, x_231, x_232); -return x_291; -} -} -block_304: -{ -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_dec(x_293); -x_294 = lean_box(0); -x_295 = lean_unsigned_to_nat(0u); -lean_inc(x_3); -x_296 = l_Lean_Syntax_formatStxAux___main(x_294, x_295, x_3); -x_297 = l_Lean_Options_empty; -x_298 = l_Lean_Format_pretty(x_296, x_297); -x_299 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_299, 0, x_298); -x_300 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_300, 0, x_299); -x_301 = l_Lean_Elab_Term_withNode___rarg___closed__3; -x_302 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_302, 0, x_301); -lean_ctor_set(x_302, 1, x_300); -x_303 = l_Lean_Elab_Term_throwError___rarg(x_3, x_302, x_231, x_222); +lean_dec(x_205); lean_dec(x_3); -return x_303; +if (lean_is_scalar(x_218)) { + x_229 = lean_alloc_ctor(1, 2, 0); +} else { + x_229 = x_218; + lean_ctor_set_tag(x_229, 1); +} +lean_ctor_set(x_229, 0, x_226); +lean_ctor_set(x_229, 1, x_227); +return x_229; +} +else +{ +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_dec(x_226); +lean_dec(x_218); +x_230 = l_Lean_Name_toString___closed__1; +x_231 = l_Lean_Name_toStringWithSep___main(x_230, x_213); +x_232 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_232, 0, x_231); +x_233 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_233, 0, x_232); +x_234 = l_Lean_Elab_Term_elabTermAux___main___closed__3; +x_235 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_235, 0, x_234); +lean_ctor_set(x_235, 1, x_233); +x_236 = l_Lean_Elab_Term_elabTermAux___main___closed__6; +x_237 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_237, 0, x_235); +lean_ctor_set(x_237, 1, x_236); +x_238 = l_Lean_Elab_Term_throwError___rarg(x_3, x_237, x_205, x_227); +lean_dec(x_3); +x_239 = lean_ctor_get(x_238, 0); +lean_inc(x_239); +x_240 = lean_ctor_get(x_238, 1); +lean_inc(x_240); +if (lean_is_exclusive(x_238)) { + lean_ctor_release(x_238, 0); + lean_ctor_release(x_238, 1); + x_241 = x_238; +} else { + lean_dec_ref(x_238); + x_241 = lean_box(0); +} +if (lean_is_scalar(x_241)) { + x_242 = lean_alloc_ctor(1, 2, 0); +} else { + x_242 = x_241; +} +lean_ctor_set(x_242, 0, x_239); +lean_ctor_set(x_242, 1, x_240); +return x_242; +} +} +} +else +{ +lean_object* x_264; lean_object* x_265; +lean_dec(x_213); +lean_dec(x_204); +lean_dec(x_192); +lean_dec(x_191); +lean_dec(x_190); +lean_dec(x_189); +lean_dec(x_188); +lean_dec(x_187); +lean_dec(x_186); +lean_dec(x_185); +lean_dec(x_7); +x_264 = lean_ctor_get(x_214, 0); +lean_inc(x_264); +lean_dec(x_214); +lean_inc(x_206); +x_265 = l___private_Init_Lean_Elab_Term_8__elabTermUsing___main(x_206, x_3, x_1, x_2, x_264, x_205, x_206); +return x_265; +} } } } } else { -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; uint8_t x_342; uint8_t x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_439; lean_object* x_440; uint8_t x_441; -x_324 = lean_ctor_get(x_5, 0); -x_325 = lean_ctor_get(x_5, 1); -x_326 = lean_ctor_get(x_5, 2); -x_327 = lean_ctor_get(x_5, 3); -x_328 = lean_ctor_get(x_5, 4); -x_329 = lean_ctor_get(x_5, 5); -lean_inc(x_329); -lean_inc(x_328); -lean_inc(x_327); -lean_inc(x_326); -lean_inc(x_325); -lean_inc(x_324); +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; uint8_t x_303; uint8_t x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_387; lean_object* x_388; uint8_t x_389; +x_285 = lean_ctor_get(x_5, 0); +x_286 = lean_ctor_get(x_5, 1); +x_287 = lean_ctor_get(x_5, 2); +x_288 = lean_ctor_get(x_5, 3); +x_289 = lean_ctor_get(x_5, 4); +x_290 = lean_ctor_get(x_5, 5); +lean_inc(x_290); +lean_inc(x_289); +lean_inc(x_288); +lean_inc(x_287); +lean_inc(x_286); +lean_inc(x_285); lean_dec(x_5); -x_330 = lean_unsigned_to_nat(1u); -x_331 = lean_nat_add(x_329, x_330); -x_332 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_332, 0, x_324); -lean_ctor_set(x_332, 1, x_325); -lean_ctor_set(x_332, 2, x_326); -lean_ctor_set(x_332, 3, x_327); -lean_ctor_set(x_332, 4, x_328); -lean_ctor_set(x_332, 5, x_331); -x_333 = lean_ctor_get(x_4, 0); -lean_inc(x_333); -x_334 = lean_ctor_get(x_4, 1); -lean_inc(x_334); -x_335 = lean_ctor_get(x_4, 2); -lean_inc(x_335); -x_336 = lean_ctor_get(x_4, 3); -lean_inc(x_336); -x_337 = lean_ctor_get(x_4, 4); -lean_inc(x_337); -x_338 = lean_ctor_get(x_4, 5); -lean_inc(x_338); -x_339 = lean_ctor_get(x_4, 6); -lean_inc(x_339); -x_340 = lean_ctor_get(x_4, 7); -lean_inc(x_340); -x_341 = lean_ctor_get(x_4, 8); -lean_inc(x_341); -x_342 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_343 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); +x_291 = lean_unsigned_to_nat(1u); +x_292 = lean_nat_add(x_290, x_291); +x_293 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_293, 0, x_285); +lean_ctor_set(x_293, 1, x_286); +lean_ctor_set(x_293, 2, x_287); +lean_ctor_set(x_293, 3, x_288); +lean_ctor_set(x_293, 4, x_289); +lean_ctor_set(x_293, 5, x_292); +x_294 = lean_ctor_get(x_4, 0); +lean_inc(x_294); +x_295 = lean_ctor_get(x_4, 1); +lean_inc(x_295); +x_296 = lean_ctor_get(x_4, 2); +lean_inc(x_296); +x_297 = lean_ctor_get(x_4, 3); +lean_inc(x_297); +x_298 = lean_ctor_get(x_4, 4); +lean_inc(x_298); +x_299 = lean_ctor_get(x_4, 5); +lean_inc(x_299); +x_300 = lean_ctor_get(x_4, 6); +lean_inc(x_300); +x_301 = lean_ctor_get(x_4, 7); +lean_inc(x_301); +x_302 = lean_ctor_get(x_4, 8); +lean_inc(x_302); +x_303 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); +x_304 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); if (lean_is_exclusive(x_4)) { lean_ctor_release(x_4, 0); lean_ctor_release(x_4, 1); @@ -13203,454 +12988,410 @@ if (lean_is_exclusive(x_4)) { lean_ctor_release(x_4, 7); lean_ctor_release(x_4, 8); lean_ctor_release(x_4, 9); - x_344 = x_4; + x_305 = x_4; } else { lean_dec_ref(x_4); - x_344 = lean_box(0); + x_305 = lean_box(0); } -lean_inc(x_329); -lean_inc(x_341); -lean_inc(x_340); -lean_inc(x_339); -lean_inc(x_338); -lean_inc(x_337); -lean_inc(x_336); -lean_inc(x_335); -lean_inc(x_334); -lean_inc(x_333); -if (lean_is_scalar(x_344)) { - x_345 = lean_alloc_ctor(0, 10, 2); +lean_inc(x_290); +lean_inc(x_302); +lean_inc(x_301); +lean_inc(x_300); +lean_inc(x_299); +lean_inc(x_298); +lean_inc(x_297); +lean_inc(x_296); +lean_inc(x_295); +lean_inc(x_294); +if (lean_is_scalar(x_305)) { + x_306 = lean_alloc_ctor(0, 10, 2); } else { - x_345 = x_344; + x_306 = x_305; } -lean_ctor_set(x_345, 0, x_333); -lean_ctor_set(x_345, 1, x_334); -lean_ctor_set(x_345, 2, x_335); -lean_ctor_set(x_345, 3, x_336); -lean_ctor_set(x_345, 4, x_337); -lean_ctor_set(x_345, 5, x_338); -lean_ctor_set(x_345, 6, x_339); -lean_ctor_set(x_345, 7, x_340); -lean_ctor_set(x_345, 8, x_341); -lean_ctor_set(x_345, 9, x_329); -lean_ctor_set_uint8(x_345, sizeof(void*)*10, x_342); -lean_ctor_set_uint8(x_345, sizeof(void*)*10 + 1, x_343); -x_439 = lean_ctor_get(x_333, 3); -lean_inc(x_439); -x_440 = lean_ctor_get(x_333, 4); -lean_inc(x_440); -x_441 = lean_nat_dec_eq(x_439, x_440); -lean_dec(x_440); -lean_dec(x_439); -if (x_441 == 0) +lean_ctor_set(x_306, 0, x_294); +lean_ctor_set(x_306, 1, x_295); +lean_ctor_set(x_306, 2, x_296); +lean_ctor_set(x_306, 3, x_297); +lean_ctor_set(x_306, 4, x_298); +lean_ctor_set(x_306, 5, x_299); +lean_ctor_set(x_306, 6, x_300); +lean_ctor_set(x_306, 7, x_301); +lean_ctor_set(x_306, 8, x_302); +lean_ctor_set(x_306, 9, x_290); +lean_ctor_set_uint8(x_306, sizeof(void*)*10, x_303); +lean_ctor_set_uint8(x_306, sizeof(void*)*10 + 1, x_304); +x_387 = lean_ctor_get(x_294, 3); +lean_inc(x_387); +x_388 = lean_ctor_get(x_294, 4); +lean_inc(x_388); +x_389 = lean_nat_dec_eq(x_387, x_388); +lean_dec(x_388); +lean_dec(x_387); +if (x_389 == 0) { -lean_dec(x_345); -x_346 = x_332; -goto block_438; +lean_dec(x_306); +x_307 = x_293; +goto block_386; } else { -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_dec(x_341); -lean_dec(x_340); -lean_dec(x_339); -lean_dec(x_338); -lean_dec(x_337); -lean_dec(x_336); -lean_dec(x_335); -lean_dec(x_334); -lean_dec(x_333); -lean_dec(x_329); +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_dec(x_302); +lean_dec(x_301); +lean_dec(x_300); +lean_dec(x_299); +lean_dec(x_298); +lean_dec(x_297); +lean_dec(x_296); +lean_dec(x_295); +lean_dec(x_294); +lean_dec(x_290); lean_dec(x_1); -x_442 = l_Lean_Elab_Term_withIncRecDepth___rarg___closed__2; -x_443 = l_Lean_Elab_Term_throwError___rarg(x_3, x_442, x_345, x_332); +x_390 = l_Lean_Elab_Term_withIncRecDepth___rarg___closed__2; +x_391 = l_Lean_Elab_Term_throwError___rarg(x_3, x_390, x_306, x_293); lean_dec(x_3); -x_444 = lean_ctor_get(x_443, 0); -lean_inc(x_444); -x_445 = lean_ctor_get(x_443, 1); -lean_inc(x_445); -if (lean_is_exclusive(x_443)) { - lean_ctor_release(x_443, 0); - lean_ctor_release(x_443, 1); - x_446 = x_443; +x_392 = lean_ctor_get(x_391, 0); +lean_inc(x_392); +x_393 = lean_ctor_get(x_391, 1); +lean_inc(x_393); +if (lean_is_exclusive(x_391)) { + lean_ctor_release(x_391, 0); + lean_ctor_release(x_391, 1); + x_394 = x_391; } else { - lean_dec_ref(x_443); - x_446 = lean_box(0); + lean_dec_ref(x_391); + x_394 = lean_box(0); } -if (lean_is_scalar(x_446)) { - x_447 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_394)) { + x_395 = lean_alloc_ctor(1, 2, 0); } else { - x_447 = x_446; + x_395 = x_394; } -lean_ctor_set(x_447, 0, x_444); -lean_ctor_set(x_447, 1, x_445); -return x_447; +lean_ctor_set(x_395, 0, x_392); +lean_ctor_set(x_395, 1, x_393); +return x_395; } -block_438: +block_386: { -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_417; -x_347 = lean_ctor_get(x_333, 0); -lean_inc(x_347); -x_348 = lean_ctor_get(x_333, 1); -lean_inc(x_348); -x_349 = lean_ctor_get(x_333, 2); -lean_inc(x_349); -x_350 = lean_ctor_get(x_333, 3); -lean_inc(x_350); -x_351 = lean_ctor_get(x_333, 4); -lean_inc(x_351); -if (lean_is_exclusive(x_333)) { - lean_ctor_release(x_333, 0); - lean_ctor_release(x_333, 1); - lean_ctor_release(x_333, 2); - lean_ctor_release(x_333, 3); - lean_ctor_release(x_333, 4); - x_352 = x_333; +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_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; uint8_t x_382; +x_308 = lean_ctor_get(x_294, 0); +lean_inc(x_308); +x_309 = lean_ctor_get(x_294, 1); +lean_inc(x_309); +x_310 = lean_ctor_get(x_294, 2); +lean_inc(x_310); +x_311 = lean_ctor_get(x_294, 3); +lean_inc(x_311); +x_312 = lean_ctor_get(x_294, 4); +lean_inc(x_312); +if (lean_is_exclusive(x_294)) { + lean_ctor_release(x_294, 0); + lean_ctor_release(x_294, 1); + lean_ctor_release(x_294, 2); + lean_ctor_release(x_294, 3); + lean_ctor_release(x_294, 4); + x_313 = x_294; } else { - lean_dec_ref(x_333); - x_352 = lean_box(0); + lean_dec_ref(x_294); + x_313 = lean_box(0); } -x_353 = lean_nat_add(x_350, x_330); -lean_dec(x_350); -if (lean_is_scalar(x_352)) { - x_354 = lean_alloc_ctor(0, 5, 0); +x_314 = lean_nat_add(x_311, x_291); +lean_dec(x_311); +if (lean_is_scalar(x_313)) { + x_315 = lean_alloc_ctor(0, 5, 0); } else { - x_354 = x_352; + x_315 = x_313; } -lean_ctor_set(x_354, 0, x_347); -lean_ctor_set(x_354, 1, x_348); -lean_ctor_set(x_354, 2, x_349); -lean_ctor_set(x_354, 3, x_353); -lean_ctor_set(x_354, 4, x_351); -lean_inc(x_329); -lean_inc(x_341); -lean_inc(x_340); -lean_inc(x_339); -lean_inc(x_338); -lean_inc(x_337); -lean_inc(x_336); -lean_inc(x_335); -lean_inc(x_334); -lean_inc(x_354); -x_355 = lean_alloc_ctor(0, 10, 2); -lean_ctor_set(x_355, 0, x_354); -lean_ctor_set(x_355, 1, x_334); -lean_ctor_set(x_355, 2, x_335); -lean_ctor_set(x_355, 3, x_336); -lean_ctor_set(x_355, 4, x_337); -lean_ctor_set(x_355, 5, x_338); -lean_ctor_set(x_355, 6, x_339); -lean_ctor_set(x_355, 7, x_340); -lean_ctor_set(x_355, 8, x_341); -lean_ctor_set(x_355, 9, x_329); -lean_ctor_set_uint8(x_355, sizeof(void*)*10, x_342); -lean_ctor_set_uint8(x_355, sizeof(void*)*10 + 1, x_343); -if (lean_obj_tag(x_3) == 1) +lean_ctor_set(x_315, 0, x_308); +lean_ctor_set(x_315, 1, x_309); +lean_ctor_set(x_315, 2, x_310); +lean_ctor_set(x_315, 3, x_314); +lean_ctor_set(x_315, 4, x_312); +lean_inc(x_290); +lean_inc(x_302); +lean_inc(x_301); +lean_inc(x_300); +lean_inc(x_299); +lean_inc(x_298); +lean_inc(x_297); +lean_inc(x_296); +lean_inc(x_295); +lean_inc(x_315); +x_316 = lean_alloc_ctor(0, 10, 2); +lean_ctor_set(x_316, 0, x_315); +lean_ctor_set(x_316, 1, x_295); +lean_ctor_set(x_316, 2, x_296); +lean_ctor_set(x_316, 3, x_297); +lean_ctor_set(x_316, 4, x_298); +lean_ctor_set(x_316, 5, x_299); +lean_ctor_set(x_316, 6, x_300); +lean_ctor_set(x_316, 7, x_301); +lean_ctor_set(x_316, 8, x_302); +lean_ctor_set(x_316, 9, x_290); +lean_ctor_set_uint8(x_316, sizeof(void*)*10, x_303); +lean_ctor_set_uint8(x_316, sizeof(void*)*10 + 1, x_304); +x_378 = l_Lean_Elab_Term_getOptions(x_316, x_307); +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); +x_381 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3; +x_382 = l_Lean_checkTraceOption(x_379, x_381); +lean_dec(x_379); +if (x_382 == 0) { -lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; uint8_t x_433; -x_429 = l_Lean_Elab_Term_getOptions(x_355, x_346); -x_430 = lean_ctor_get(x_429, 0); -lean_inc(x_430); -x_431 = lean_ctor_get(x_429, 1); -lean_inc(x_431); -lean_dec(x_429); -x_432 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3; -x_433 = l_Lean_checkTraceOption(x_430, x_432); -lean_dec(x_430); -if (x_433 == 0) -{ -x_356 = x_431; -goto block_416; +x_317 = x_380; +goto block_377; } else { -lean_object* x_434; lean_object* x_435; lean_object* x_436; +lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_inc(x_3); -x_434 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_434, 0, x_3); -x_435 = l_Lean_Elab_Term_logTrace(x_432, x_3, x_434, x_355, x_431); -x_436 = lean_ctor_get(x_435, 1); -lean_inc(x_436); -lean_dec(x_435); -x_356 = x_436; -goto block_416; +x_383 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_383, 0, x_3); +x_384 = l_Lean_Elab_Term_logTrace(x_381, x_3, x_383, x_316, x_380); +x_385 = lean_ctor_get(x_384, 1); +lean_inc(x_385); +lean_dec(x_384); +x_317 = x_385; +goto block_377; } -} -else +block_377: { -lean_object* x_437; -lean_dec(x_354); -lean_dec(x_341); -lean_dec(x_340); -lean_dec(x_339); -lean_dec(x_338); -lean_dec(x_337); -lean_dec(x_336); -lean_dec(x_335); -lean_dec(x_334); -lean_dec(x_329); -lean_dec(x_1); -x_437 = lean_box(0); -x_417 = x_437; -goto block_428; -} -block_416: +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; +x_318 = l_Lean_Elab_Term_termElabAttribute; +x_319 = lean_ctor_get(x_318, 1); +lean_inc(x_319); +x_320 = lean_ctor_get(x_317, 0); +lean_inc(x_320); +x_321 = lean_ctor_get(x_320, 0); +lean_inc(x_321); +lean_dec(x_320); +x_322 = l_Lean_PersistentEnvExtension_getState___rarg(x_319, x_321); +lean_dec(x_321); +lean_dec(x_319); +x_323 = lean_ctor_get(x_322, 1); +lean_inc(x_323); +lean_dec(x_322); +lean_inc(x_3); +x_324 = l_Lean_Syntax_getKind(x_3); +x_325 = l_Lean_SMap_find_x3f___at_Lean_Elab_Term_elabTermAux___main___spec__1(x_323, x_324); +if (lean_obj_tag(x_325) == 0) { -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; -x_357 = l_Lean_Elab_Term_termElabAttribute; -x_358 = lean_ctor_get(x_357, 1); -lean_inc(x_358); -x_359 = lean_ctor_get(x_356, 0); +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_337; lean_object* x_338; 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; +x_326 = l_Lean_Elab_Term_getEnv___rarg(x_317); +x_327 = lean_ctor_get(x_326, 0); +lean_inc(x_327); +x_328 = lean_ctor_get(x_326, 1); +lean_inc(x_328); +if (lean_is_exclusive(x_326)) { + lean_ctor_release(x_326, 0); + lean_ctor_release(x_326, 1); + x_329 = x_326; +} else { + lean_dec_ref(x_326); + x_329 = lean_box(0); +} +x_355 = l_Lean_Elab_Term_getCurrMacroScope(x_316, x_328); +x_356 = lean_ctor_get(x_355, 0); +lean_inc(x_356); +x_357 = lean_ctor_get(x_355, 1); +lean_inc(x_357); +lean_dec(x_355); +x_358 = l_Lean_Elab_Term_getEnv___rarg(x_357); +x_359 = lean_ctor_get(x_358, 0); lean_inc(x_359); -x_360 = lean_ctor_get(x_359, 0); +x_360 = lean_ctor_get(x_358, 1); lean_inc(x_360); -lean_dec(x_359); -x_361 = l_Lean_PersistentEnvExtension_getState___rarg(x_358, x_360); -lean_dec(x_360); lean_dec(x_358); -x_362 = lean_ctor_get(x_361, 1); -lean_inc(x_362); -lean_dec(x_361); +x_361 = lean_environment_main_module(x_359); +x_362 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_362, 0, x_361); +lean_ctor_set(x_362, 1, x_356); lean_inc(x_3); -x_363 = l_Lean_Syntax_getKind(x_3); -x_364 = l_Lean_SMap_find_x3f___at_Lean_Elab_Term_elabTermAux___main___spec__1(x_362, x_363); +x_363 = l_Lean_Elab_getMacros(x_327, x_3, x_362); +lean_dec(x_327); +if (lean_obj_tag(x_363) == 0) +{ +lean_object* x_364; +lean_dec(x_315); +lean_dec(x_302); +lean_dec(x_301); +lean_dec(x_300); +lean_dec(x_299); +lean_dec(x_298); +lean_dec(x_297); +lean_dec(x_296); +lean_dec(x_295); +lean_dec(x_290); +lean_dec(x_1); +x_364 = lean_ctor_get(x_363, 0); +lean_inc(x_364); +lean_dec(x_363); if (lean_obj_tag(x_364) == 0) { -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_376; lean_object* x_377; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; -x_365 = l_Lean_Elab_Term_getEnv___rarg(x_356); -x_366 = lean_ctor_get(x_365, 0); -lean_inc(x_366); -x_367 = lean_ctor_get(x_365, 1); -lean_inc(x_367); -if (lean_is_exclusive(x_365)) { - lean_ctor_release(x_365, 0); - lean_ctor_release(x_365, 1); - x_368 = x_365; -} else { - lean_dec_ref(x_365); - x_368 = lean_box(0); -} -x_394 = l_Lean_Elab_Term_getCurrMacroScope(x_355, x_367); -x_395 = lean_ctor_get(x_394, 0); -lean_inc(x_395); -x_396 = lean_ctor_get(x_394, 1); -lean_inc(x_396); -lean_dec(x_394); -x_397 = l_Lean_Elab_Term_getEnv___rarg(x_396); -x_398 = lean_ctor_get(x_397, 0); -lean_inc(x_398); -x_399 = lean_ctor_get(x_397, 1); -lean_inc(x_399); -lean_dec(x_397); -x_400 = lean_environment_main_module(x_398); -x_401 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_401, 0, x_400); -lean_ctor_set(x_401, 1, x_395); -lean_inc(x_3); -x_402 = l_Lean_Elab_getMacros(x_366, x_3, x_401); -lean_dec(x_366); -if (lean_obj_tag(x_402) == 0) -{ -lean_object* x_403; -lean_dec(x_354); -lean_dec(x_341); -lean_dec(x_340); -lean_dec(x_339); -lean_dec(x_338); -lean_dec(x_337); -lean_dec(x_336); -lean_dec(x_335); -lean_dec(x_334); -lean_dec(x_329); -lean_dec(x_1); -x_403 = lean_ctor_get(x_402, 0); -lean_inc(x_403); -lean_dec(x_402); -if (lean_obj_tag(x_403) == 0) -{ -lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; -x_404 = lean_ctor_get(x_403, 0); -lean_inc(x_404); -lean_dec(x_403); -x_405 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_405, 0, x_404); -x_406 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_406, 0, x_405); -lean_inc(x_355); -x_407 = l_Lean_Elab_Term_throwError___rarg(x_3, x_406, x_355, x_399); -x_408 = lean_ctor_get(x_407, 0); -lean_inc(x_408); -x_409 = lean_ctor_get(x_407, 1); -lean_inc(x_409); -lean_dec(x_407); -x_376 = x_408; -x_377 = x_409; -goto block_393; -} -else -{ -lean_object* x_410; lean_object* x_411; lean_object* x_412; -x_410 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_399); -x_411 = lean_ctor_get(x_410, 0); -lean_inc(x_411); -x_412 = lean_ctor_get(x_410, 1); -lean_inc(x_412); -lean_dec(x_410); -x_376 = x_411; -x_377 = x_412; -goto block_393; -} -} -else -{ -lean_object* x_413; +lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; +x_365 = lean_ctor_get(x_364, 0); +lean_inc(x_365); +lean_dec(x_364); +x_366 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_366, 0, x_365); +x_367 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_367, 0, x_366); +lean_inc(x_316); +x_368 = l_Lean_Elab_Term_throwError___rarg(x_3, x_367, x_316, x_360); +x_369 = lean_ctor_get(x_368, 0); +lean_inc(x_369); +x_370 = lean_ctor_get(x_368, 1); +lean_inc(x_370); lean_dec(x_368); -lean_dec(x_363); -lean_dec(x_355); -x_413 = lean_ctor_get(x_402, 0); -lean_inc(x_413); -lean_dec(x_402); -x_369 = x_413; -x_370 = x_399; -goto block_375; +x_337 = x_369; +x_338 = x_370; +goto block_354; } -block_375: +else { lean_object* x_371; lean_object* x_372; lean_object* x_373; -lean_inc(x_369); -x_371 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_371, 0, x_3); -lean_ctor_set(x_371, 1, x_369); -x_372 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_372, 0, x_371); -lean_ctor_set(x_372, 1, x_341); -x_373 = lean_alloc_ctor(0, 10, 2); -lean_ctor_set(x_373, 0, x_354); -lean_ctor_set(x_373, 1, x_334); -lean_ctor_set(x_373, 2, x_335); -lean_ctor_set(x_373, 3, x_336); -lean_ctor_set(x_373, 4, x_337); -lean_ctor_set(x_373, 5, x_338); -lean_ctor_set(x_373, 6, x_339); -lean_ctor_set(x_373, 7, x_340); -lean_ctor_set(x_373, 8, x_372); -lean_ctor_set(x_373, 9, x_329); -lean_ctor_set_uint8(x_373, sizeof(void*)*10, x_342); -lean_ctor_set_uint8(x_373, sizeof(void*)*10 + 1, x_343); -x_3 = x_369; -x_4 = x_373; -x_5 = x_370; +x_371 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_360); +x_372 = lean_ctor_get(x_371, 0); +lean_inc(x_372); +x_373 = lean_ctor_get(x_371, 1); +lean_inc(x_373); +lean_dec(x_371); +x_337 = x_372; +x_338 = x_373; +goto block_354; +} +} +else +{ +lean_object* x_374; +lean_dec(x_329); +lean_dec(x_324); +lean_dec(x_316); +x_374 = lean_ctor_get(x_363, 0); +lean_inc(x_374); +lean_dec(x_363); +x_330 = x_374; +x_331 = x_360; +goto block_336; +} +block_336: +{ +lean_object* x_332; lean_object* x_333; lean_object* x_334; +lean_inc(x_330); +x_332 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_332, 0, x_3); +lean_ctor_set(x_332, 1, x_330); +x_333 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_333, 0, x_332); +lean_ctor_set(x_333, 1, x_302); +x_334 = lean_alloc_ctor(0, 10, 2); +lean_ctor_set(x_334, 0, x_315); +lean_ctor_set(x_334, 1, x_295); +lean_ctor_set(x_334, 2, x_296); +lean_ctor_set(x_334, 3, x_297); +lean_ctor_set(x_334, 4, x_298); +lean_ctor_set(x_334, 5, x_299); +lean_ctor_set(x_334, 6, x_300); +lean_ctor_set(x_334, 7, x_301); +lean_ctor_set(x_334, 8, x_333); +lean_ctor_set(x_334, 9, x_290); +lean_ctor_set_uint8(x_334, sizeof(void*)*10, x_303); +lean_ctor_set_uint8(x_334, sizeof(void*)*10 + 1, x_304); +x_3 = x_330; +x_4 = x_334; +x_5 = x_331; goto _start; } -block_393: +block_354: { -lean_object* x_378; -x_378 = lean_ctor_get(x_376, 0); -lean_inc(x_378); -if (lean_obj_tag(x_378) == 0) +lean_object* x_339; +x_339 = lean_ctor_get(x_337, 0); +lean_inc(x_339); +if (lean_obj_tag(x_339) == 0) { -lean_object* x_379; -lean_dec(x_378); -lean_dec(x_363); -lean_dec(x_355); -lean_dec(x_3); -if (lean_is_scalar(x_368)) { - x_379 = lean_alloc_ctor(1, 2, 0); -} else { - x_379 = x_368; - lean_ctor_set_tag(x_379, 1); -} -lean_ctor_set(x_379, 0, x_376); -lean_ctor_set(x_379, 1, x_377); -return x_379; -} -else -{ -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_dec(x_376); -lean_dec(x_368); -x_380 = l_Lean_Name_toString___closed__1; -x_381 = l_Lean_Name_toStringWithSep___main(x_380, x_363); -x_382 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_382, 0, x_381); -x_383 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_383, 0, x_382); -x_384 = l_Lean_Elab_Term_elabTermAux___main___closed__3; -x_385 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_385, 0, x_384); -lean_ctor_set(x_385, 1, x_383); -x_386 = l_Lean_Elab_Term_elabTermAux___main___closed__6; -x_387 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_387, 0, x_385); -lean_ctor_set(x_387, 1, x_386); -x_388 = l_Lean_Elab_Term_throwError___rarg(x_3, x_387, x_355, x_377); -lean_dec(x_3); -x_389 = lean_ctor_get(x_388, 0); -lean_inc(x_389); -x_390 = lean_ctor_get(x_388, 1); -lean_inc(x_390); -if (lean_is_exclusive(x_388)) { - lean_ctor_release(x_388, 0); - lean_ctor_release(x_388, 1); - x_391 = x_388; -} else { - lean_dec_ref(x_388); - x_391 = lean_box(0); -} -if (lean_is_scalar(x_391)) { - x_392 = lean_alloc_ctor(1, 2, 0); -} else { - x_392 = x_391; -} -lean_ctor_set(x_392, 0, x_389); -lean_ctor_set(x_392, 1, x_390); -return x_392; -} -} -} -else -{ -lean_object* x_414; lean_object* x_415; -lean_dec(x_363); -lean_dec(x_354); -lean_dec(x_341); -lean_dec(x_340); +lean_object* x_340; lean_dec(x_339); -lean_dec(x_338); -lean_dec(x_337); -lean_dec(x_336); -lean_dec(x_335); -lean_dec(x_334); -lean_dec(x_329); -x_414 = lean_ctor_get(x_364, 0); -lean_inc(x_414); -lean_dec(x_364); -lean_inc(x_356); -x_415 = l___private_Init_Lean_Elab_Term_8__elabTermUsing___main(x_356, x_3, x_1, x_2, x_414, x_355, x_356); -return x_415; -} -} -block_428: -{ -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_dec(x_417); -x_418 = lean_box(0); -x_419 = lean_unsigned_to_nat(0u); -lean_inc(x_3); -x_420 = l_Lean_Syntax_formatStxAux___main(x_418, x_419, x_3); -x_421 = l_Lean_Options_empty; -x_422 = l_Lean_Format_pretty(x_420, x_421); -x_423 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_423, 0, x_422); -x_424 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_424, 0, x_423); -x_425 = l_Lean_Elab_Term_withNode___rarg___closed__3; -x_426 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_426, 0, x_425); -lean_ctor_set(x_426, 1, x_424); -x_427 = l_Lean_Elab_Term_throwError___rarg(x_3, x_426, x_355, x_346); +lean_dec(x_324); +lean_dec(x_316); lean_dec(x_3); -return x_427; +if (lean_is_scalar(x_329)) { + x_340 = lean_alloc_ctor(1, 2, 0); +} else { + x_340 = x_329; + lean_ctor_set_tag(x_340, 1); +} +lean_ctor_set(x_340, 0, x_337); +lean_ctor_set(x_340, 1, x_338); +return x_340; +} +else +{ +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_dec(x_337); +lean_dec(x_329); +x_341 = l_Lean_Name_toString___closed__1; +x_342 = l_Lean_Name_toStringWithSep___main(x_341, x_324); +x_343 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_343, 0, x_342); +x_344 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_344, 0, x_343); +x_345 = l_Lean_Elab_Term_elabTermAux___main___closed__3; +x_346 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_346, 0, x_345); +lean_ctor_set(x_346, 1, x_344); +x_347 = l_Lean_Elab_Term_elabTermAux___main___closed__6; +x_348 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_348, 0, x_346); +lean_ctor_set(x_348, 1, x_347); +x_349 = l_Lean_Elab_Term_throwError___rarg(x_3, x_348, x_316, x_338); +lean_dec(x_3); +x_350 = lean_ctor_get(x_349, 0); +lean_inc(x_350); +x_351 = lean_ctor_get(x_349, 1); +lean_inc(x_351); +if (lean_is_exclusive(x_349)) { + lean_ctor_release(x_349, 0); + lean_ctor_release(x_349, 1); + x_352 = x_349; +} else { + lean_dec_ref(x_349); + x_352 = lean_box(0); +} +if (lean_is_scalar(x_352)) { + x_353 = lean_alloc_ctor(1, 2, 0); +} else { + x_353 = x_352; +} +lean_ctor_set(x_353, 0, x_350); +lean_ctor_set(x_353, 1, x_351); +return x_353; +} +} +} +else +{ +lean_object* x_375; lean_object* x_376; +lean_dec(x_324); +lean_dec(x_315); +lean_dec(x_302); +lean_dec(x_301); +lean_dec(x_300); +lean_dec(x_299); +lean_dec(x_298); +lean_dec(x_297); +lean_dec(x_296); +lean_dec(x_295); +lean_dec(x_290); +x_375 = lean_ctor_get(x_325, 0); +lean_inc(x_375); +lean_dec(x_325); +lean_inc(x_317); +x_376 = l___private_Init_Lean_Elab_Term_8__elabTermUsing___main(x_317, x_3, x_1, x_2, x_375, x_316, x_317); +return x_376; +} } } } @@ -21789,12 +21530,6 @@ l_Lean_Elab_Term_decLevel___closed__5 = _init_l_Lean_Elab_Term_decLevel___closed lean_mark_persistent(l_Lean_Elab_Term_decLevel___closed__5); l_Lean_Elab_Term_decLevel___closed__6 = _init_l_Lean_Elab_Term_decLevel___closed__6(); lean_mark_persistent(l_Lean_Elab_Term_decLevel___closed__6); -l_Lean_Elab_Term_withNode___rarg___closed__1 = _init_l_Lean_Elab_Term_withNode___rarg___closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_withNode___rarg___closed__1); -l_Lean_Elab_Term_withNode___rarg___closed__2 = _init_l_Lean_Elab_Term_withNode___rarg___closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_withNode___rarg___closed__2); -l_Lean_Elab_Term_withNode___rarg___closed__3 = _init_l_Lean_Elab_Term_withNode___rarg___closed__3(); -lean_mark_persistent(l_Lean_Elab_Term_withNode___rarg___closed__3); l_Lean_Elab_Term_mkExplicitBinder___closed__1 = _init_l_Lean_Elab_Term_mkExplicitBinder___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_mkExplicitBinder___closed__1); l_Lean_Elab_Term_mkExplicitBinder___closed__2 = _init_l_Lean_Elab_Term_mkExplicitBinder___closed__2(); diff --git a/stage0/stdlib/Init/Lean/Elab/TermApp.c b/stage0/stdlib/Init/Lean/Elab/TermApp.c index 61169aaa38..9296e2e742 100644 --- a/stage0/stdlib/Init/Lean/Elab/TermApp.c +++ b/stage0/stdlib/Init/Lean/Elab/TermApp.c @@ -15,58 +15,65 @@ extern "C" { #endif lean_object* l___private_Init_Lean_Elab_TermApp_10__mkBaseProjections(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_addNamedArg___closed__5; -lean_object* l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_TermApp_16__toMessageData___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getEnv___rarg(lean_object*); extern lean_object* l_Lean_Name_toString___closed__1; lean_object* l___private_Init_Lean_Elab_TermApp_10__mkBaseProjections___closed__3; -lean_object* l___private_Init_Lean_Elab_TermApp_16__toMessageData(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_8__resolveLValLoop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_ReaderT_pure___at___private_Init_Lean_Elab_TermApp_20__expandApp___spec__2___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_fieldIdxKind; lean_object* l___private_Init_Lean_Elab_TermApp_11__addLValArg___main___closed__6; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermApp_19__elabAppAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* l_Lean_Syntax_isNatLitAux(lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabChoice___closed__3; extern lean_object* l_Lean_Parser_Term_explicit___elambda__1___closed__2; -lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermApp_18__elabAppAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_TermApp_17__mergeFailures___rarg___closed__1; +lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabRawIdent___closed__2; +lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabRawIdent___closed__1; lean_object* l_Lean_mkSort(lean_object*); lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_TermApp_18__mergeFailures___rarg___closed__2; lean_object* l_Lean_Elab_Term_mkFreshExprMVar(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_unreachable_x21___rarg(lean_object*); +lean_object* l___private_Init_Lean_Elab_TermApp_15__elabAppFn___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Elab_Term_elabExplicitUniv___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_fieldIdxKind___closed__2; extern lean_object* l_Lean_MessageData_ofList___closed__3; lean_object* l_Array_eraseIdx___rarg(lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermApp_17__mergeFailures___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_inferType(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_7__resolveLValAux___closed__24; lean_object* l___private_Init_Lean_Elab_TermApp_11__addLValArg___main___closed__8; +lean_object* l_ReaderT_pure___at___private_Init_Lean_Elab_TermApp_20__expandApp___spec__2(lean_object*); lean_object* l_Lean_Format_pretty(lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabId___closed__1; extern lean_object* l_Option_get_x21___rarg___closed__3; -lean_object* l___private_Init_Lean_Elab_TermApp_20__regTraceClasses(lean_object*); +lean_object* l___private_Init_Lean_Elab_TermApp_17__toMessageData___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabId___closed__2; lean_object* lean_array_fswap(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_identKind___closed__2; extern uint8_t l___private_Init_Lean_Elab_Term_4__isCDot___closed__1; +lean_object* l___private_Init_Lean_Elab_TermApp_15__elabAppFn___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Prod_HasRepr___rarg___closed__1; lean_object* l___private_Init_Lean_Elab_TermApp_7__resolveLValAux___closed__7; +lean_object* l___private_Init_Lean_Elab_TermApp_14__elabAppFnId___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabProj___closed__3; extern lean_object* l_Array_empty___closed__1; lean_object* lean_environment_find(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_12__elabAppLValsAux(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findIdxAux___main___at___private_Init_Lean_Elab_TermApp_11__addLValArg___main___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_TermApp_21__regTraceClasses(lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_11__addLValArg___main___closed__11; lean_object* l_List_append___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_Exception_mkAppTypeMismatchMessage(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_13__elabAppLVals___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_unfoldDefinition_x3f(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_5__elabAppArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Init_Lean_Elab_TermApp_15__elabAppFn___main___spec__1(lean_object*); extern lean_object* l_Lean_Parser_Term_namedArgument___elambda__1___closed__2; +lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFnId___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); +lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabRawIdent(lean_object*); lean_object* lean_local_ctx_find_from_user_name(lean_object*, lean_object*); lean_object* lean_expr_instantiate1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_NamedArg_hasToString(lean_object*); @@ -74,49 +81,48 @@ lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_3__elabArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_TermApp_16__toMessageData___closed__1; lean_object* l_Lean_Expr_getOptParamDefault_x3f(lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_7__resolveLValAux___closed__20; lean_object* l_Lean_Expr_getAppFn___main(lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_7__resolveLValAux___closed__28; lean_object* l_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermApp_4__elabAppArgsAux___main___spec__2(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_TermApp_19__elabAppAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_7__resolveLValAux___closed__10; -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_13__elabAppLVals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_TermApp_10__mkBaseProjections___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_filterAux___main___at___private_Init_Lean_Elab_TermApp_15__getSuccess___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_addNamedArg___closed__6; lean_object* l___private_Init_Lean_Elab_TermApp_13__elabAppLVals___closed__1; lean_object* l___private_Init_Lean_Elab_TermApp_7__resolveLValAux___closed__16; -lean_object* l___private_Init_Lean_Elab_TermApp_19__expandApp___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_sort___elambda__1___closed__2; -lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_7__resolveLValAux___closed__14; -lean_object* l___private_Init_Lean_Elab_TermApp_16__toMessageData___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_ReaderT_pure___at___private_Init_Lean_Elab_TermApp_19__expandApp___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_TermApp_18__mergeFailures___rarg___closed__3; lean_object* l___private_Init_Lean_Elab_TermApp_8__resolveLValLoop___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_NamedArg_inhabited; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabId___closed__3; +lean_object* l___private_Init_Lean_Elab_TermApp_18__mergeFailures(lean_object*); extern lean_object* l_Lean_mkAppStx___closed__8; -lean_object* l___private_Init_Lean_Elab_TermApp_17__mergeFailures(lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_8__resolveLValLoop___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at___private_Init_Lean_Elab_TermApp_1__synthesizeAppInstMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabRawIdent___closed__3; extern lean_object* l_Lean_mkAppStx___closed__7; lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Array_foldlStepMAux___main___at_Lean_Syntax_foldSepRevArgsM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_TermApp_10__mkBaseProjections___spec__1___closed__1; lean_object* l___private_Init_Lean_Elab_TermApp_11__addLValArg___main___closed__7; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabArrayRef___closed__3; -lean_object* l___private_Init_Lean_Elab_TermApp_18__elabAppAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_4__elabAppArgsAux___main___closed__7; lean_object* l_Lean_Elab_Term_getOptions(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_13__elabAppLVals___closed__2; +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_TermApp_20__expandApp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_7__resolveLValAux___closed__19; extern lean_object* l_Lean_mkTermIdFromIdent___closed__2; +lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermApp_18__mergeFailures___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_proj___elambda__1___closed__2; lean_object* l___private_Init_Lean_Elab_TermApp_1__synthesizeAppInstMVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_4__elabAppArgsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermApp_18__mergeFailures___spec__1___closed__1; +lean_object* l___private_Init_Lean_Elab_TermApp_15__elabAppFn___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_HasRepr___rarg___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabArrayRef___closed__1; lean_object* l_Lean_Elab_Term_elabLevel(lean_object*, lean_object*, lean_object*); @@ -134,40 +140,39 @@ lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabChoice___closed__2; lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_TermApp_10__mkBaseProjections___spec__1___closed__2; lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabExplicit(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_TermApp_14__elabAppFnId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_TermApp_19__elabAppAux___closed__1; lean_object* l_Lean_Elab_Term_getCurrNamespace(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(lean_object*); extern lean_object* l_Lean_choiceKind___closed__2; extern lean_object* l_Lean_MessageData_Inhabited; -lean_object* l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_TermApp_16__toMessageData___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabId(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_TermApp_17__toMessageData___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); lean_object* l_Array_shrink___main___rarg(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_11__addLValArg___main___closed__2; lean_object* l___private_Init_Lean_Elab_TermApp_7__resolveLValAux___closed__26; -lean_object* l___private_Init_Lean_Elab_TermApp_17__mergeFailures___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_TermApp_19__elabAppAux___closed__2; +lean_object* l___private_Init_Lean_Elab_TermApp_18__mergeFailures___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabChoice___closed__1; lean_object* l_Lean_Elab_Term_addNamedArg___closed__3; lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_mkConst___closed__4; lean_object* l___private_Init_Lean_Elab_TermApp_13__elabAppLVals___closed__3; lean_object* l___private_Init_Lean_Elab_TermApp_4__elabAppArgsAux___main(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_11__addLValArg___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_2__ensureArgType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__4(lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabArrayRef___closed__2; lean_object* l_Lean_Elab_Term_NamedArg_inhabited___closed__1; lean_object* l_Lean_Elab_Term_elabExplicitUniv___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_TermApp_20__regTraceClasses___closed__1; lean_object* l___private_Init_Lean_Elab_TermApp_11__addLValArg___main___closed__1; lean_object* l_Lean_Elab_Term_Arg_hasToString(lean_object*); lean_object* l_Array_forMAux___main___at___private_Init_Lean_Elab_TermApp_8__resolveLValLoop___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_TermApp_14__elabAppFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTermAux___main(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_repr(lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_TermApp_19__expandApp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_LocalDecl_binderInfo(lean_object*); +lean_object* l___private_Init_Lean_Elab_TermApp_15__elabAppFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); extern lean_object* l_Lean_choiceKind; @@ -180,38 +185,37 @@ lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabSortApp___closed__1; lean_object* l___private_Init_Lean_Elab_TermApp_12__elabAppLValsAux___main(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_addNamedArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_Exception_toTraceMessageData___closed__4; +lean_object* l___private_Init_Lean_Elab_TermApp_17__toMessageData(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_7__resolveLValAux___closed__13; extern lean_object* l_Lean_Options_empty; lean_object* lean_expr_dbg_to_string(lean_object*); -lean_object* l___private_Init_Lean_Elab_TermApp_17__mergeFailures___rarg___closed__3; +lean_object* l___private_Init_Lean_Elab_TermApp_17__toMessageData___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabApp(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getPathToBaseStructure_x3f(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_7__resolveLValAux___closed__23; uint8_t l_coeDecidableEq(uint8_t); -lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermApp_17__mergeFailures___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermApp_17__mergeFailures___spec__1___closed__1; uint8_t l_Array_isEmpty___rarg(lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_7__resolveLValAux___closed__21; lean_object* l_Array_forMAux___main___at___private_Init_Lean_Elab_TermApp_8__resolveLValLoop___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_toExpr(lean_object*); lean_object* l_Lean_Elab_Term_elabChoice(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_TermApp_19__expandApp(lean_object*, lean_object*, lean_object*); -lean_object* l_ReaderT_pure___at___private_Init_Lean_Elab_TermApp_19__expandApp___spec__2(lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_7__resolveLValAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_4__elabAppArgsAux___main___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabApp(lean_object*); +lean_object* l___private_Init_Lean_Elab_TermApp_20__expandApp(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_7__resolveLValAux___closed__1; -lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_formatEntry___closed__1; extern lean_object* l_Lean_Elab_Term_TermElabResult_inhabited; uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); lean_object* l___private_Init_Lean_Elab_TermApp_6__throwLValError(lean_object*); lean_object* l_Lean_Elab_Term_TermElabM_inhabited___boxed(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_TermApp_17__toMessageData___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabExplicit___closed__1; extern lean_object* l_Lean_Parser_Term_arrayRef___elambda__1___closed__2; lean_object* l_Lean_Name_replacePrefix___main(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_4__elabAppArgsAux(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_TermApp_19__elabAppAux___closed__3; lean_object* l_Lean_Elab_Term_mkConst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabProj(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofArray(lean_object*); @@ -223,9 +227,7 @@ lean_object* l___private_Init_Lean_Elab_TermApp_11__addLValArg___main___closed__ extern lean_object* l_Option_HasRepr___rarg___closed__3; lean_object* l___private_Init_Lean_Elab_TermApp_4__elabAppArgsAux___main___closed__6; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabExplicit(lean_object*); -lean_object* l___private_Init_Lean_Elab_TermApp_18__elabAppAux___closed__3; lean_object* l___private_Init_Lean_Elab_TermApp_5__elabAppArgs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_Exception_mkAppTypeMismatchMessage___closed__8; lean_object* l___private_Init_Lean_Elab_TermApp_7__resolveLValAux___closed__8; uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_addNamedArg___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -238,10 +240,11 @@ uint8_t l_Lean_BinderInfo_beq(uint8_t, uint8_t); lean_object* l_Lean_Elab_Term_elabSortApp___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabProj___closed__1; lean_object* l___private_Init_Lean_Elab_TermApp_7__resolveLValAux___closed__17; +lean_object* l___private_Init_Lean_Elab_TermApp_18__mergeFailures___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkLevelSucc(lean_object*); lean_object* l_Lean_Elab_Term_getLCtx(lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_TermApp_20__expandApp___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at___private_Init_Lean_Elab_TermApp_1__synthesizeAppInstMVars___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_TermApp_16__toMessageData___closed__2; lean_object* l_Lean_Elab_Term_elabSortApp(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_4__elabAppArgsAux___main___closed__3; lean_object* l_Lean_mkApp(lean_object*, lean_object*); @@ -260,18 +263,15 @@ lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabChoice(lean_object*); lean_object* l_Lean_Elab_getPos___at_Lean_Elab_Term_throwError___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_7__resolveLValAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_7__resolveLValAux___closed__2; -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_7__resolveLValAux___closed__9; lean_object* l_Lean_Elab_Term_whnfCore(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabArrayRef(lean_object*); extern lean_object* l___private_Init_Util_1__mkPanicMessage___closed__2; -lean_object* l___private_Init_Lean_Elab_TermApp_14__elabAppFn___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_7__resolveLValAux___closed__4; lean_object* l___private_Init_Lean_Elab_TermApp_11__addLValArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_7__resolveLValAux___closed__11; lean_object* l_Lean_Elab_Term_elabExplicitUniv(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_11__addLValArg___main___closed__3; -lean_object* l_ReaderT_pure___at___private_Init_Lean_Elab_TermApp_19__expandApp___spec__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_7__resolveLValAux___closed__27; lean_object* l_Lean_Elab_Term_tryPostponeIfMVar(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_4__elabAppArgsAux___main___closed__9; @@ -281,26 +281,26 @@ extern lean_object* l_Lean_mkAppStx___closed__9; lean_object* l_Lean_Elab_Term_whnfForall(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_7__resolveLValAux___closed__15; lean_object* l___private_Init_Lean_Elab_TermApp_7__resolveLValAux___closed__18; +lean_object* l_Array_filterAux___main___at___private_Init_Lean_Elab_TermApp_16__getSuccess___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_2__ensureArgType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_addNamedArg___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_4__elabAppArgsAux___main___closed__8; -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_TermApp_19__expandApp___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_consumeMData___main(lean_object*); lean_object* l_Lean_Elab_Term_addNamedArg___closed__1; lean_object* l___private_Init_Lean_Elab_TermApp_4__elabAppArgsAux___main___closed__4; lean_object* l_Array_toList___rarg(lean_object*); lean_object* l_Lean_Elab_Term_addNamedArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_TermApp_18__elabAppAux___closed__2; lean_object* l_Lean_Elab_Term_addBuiltinTermElab(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabApp___closed__2; uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_TermApp_18__elabAppAux___closed__1; +lean_object* l___private_Init_Lean_Elab_TermApp_18__mergeFailures___rarg___closed__1; lean_object* l_Lean_Elab_Term_Arg_inhabited___closed__1; lean_object* l___private_Init_Lean_Elab_TermApp_7__resolveLValAux___closed__6; +lean_object* l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_TermApp_17__toMessageData___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabApp___closed__1; -lean_object* l___private_Init_Lean_Elab_TermApp_17__mergeFailures___rarg___closed__2; -lean_object* l___private_Init_Lean_Elab_TermApp_17__mergeFailures___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFnId___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_11__addLValArg___main___closed__9; +lean_object* l___private_Init_Lean_Elab_TermApp_20__expandApp___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_10__mkBaseProjections___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_tryEnsureHasType_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_addNamedArg___closed__2; @@ -308,13 +308,16 @@ lean_object* l___private_Init_Lean_Elab_TermApp_7__resolveLValAux___closed__5; uint8_t l_Lean_Position_DecidableEq(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; -lean_object* l___private_Init_Lean_Elab_TermApp_14__elabAppFn___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_10__mkBaseProjections___closed__1; lean_object* l___private_Init_Lean_Elab_TermApp_11__addLValArg___main___closed__4; +lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermApp_18__mergeFailures___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findIdxAux___main___at___private_Init_Lean_Elab_TermApp_4__elabAppArgsAux___main___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_TermApp_15__elabAppFn___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_TermApp_15__elabAppFn___main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_12__elabAppLValsAux___main___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabProj(lean_object*); lean_object* l_Lean_Syntax_formatStxAux___main(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_TermApp_21__regTraceClasses___closed__1; extern lean_object* l_Nat_Inhabited; lean_object* l___private_Init_Lean_Elab_TermApp_11__addLValArg___main___closed__10; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*, lean_object*); @@ -322,18 +325,19 @@ uint8_t l_List_isEmpty___rarg(lean_object*); lean_object* l_Lean_Elab_Term_applyResult(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1; +lean_object* l_Lean_Elab_Term_elabRawIdent(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_isStructureLike(lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_12__elabAppLValsAux___main___closed__1; -lean_object* l___private_Init_Lean_Elab_TermApp_15__getSuccess(lean_object*); extern lean_object* l___private_Init_Lean_Meta_Tactic_Apply_7__reorderNonDependentFirst___closed__1; lean_object* l___private_Init_Lean_Elab_TermApp_12__elabAppLValsAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabSortApp(lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_1__synthesizeAppInstMVars(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_TermApp_16__getSuccess(lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_7__resolveLValAux___closed__22; lean_object* l_Lean_Elab_Term_ensureHasTypeAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__1(lean_object*); lean_object* l_Array_insertAt___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFnId___spec__1(lean_object*); lean_object* l_Lean_findField_x3f___main(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_4__elabAppArgsAux___main___closed__2; extern lean_object* l_Lean_Parser_Term_sortApp___elambda__1___closed__2; @@ -349,6 +353,8 @@ uint8_t l_Lean_isStructure(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermApp_7__resolveLValAux___closed__25; lean_object* l_Lean_Elab_Term_Arg_inhabited; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +lean_object* l_ReaderT_pure___at___private_Init_Lean_Elab_TermApp_20__expandApp___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Syntax_isIdent(lean_object*); lean_object* _init_l_Lean_Elab_Term_Arg_inhabited___closed__1() { _start: { @@ -5761,7 +5767,7 @@ lean_dec(x_1); return x_4; } } -lean_object* l_List_map___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__1(lean_object* x_1) { +lean_object* l_List_map___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFnId___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -5781,7 +5787,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_6, 0, x_4); -x_7 = l_List_map___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__1(x_5); +x_7 = l_List_map___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFnId___spec__1(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -5796,7 +5802,7 @@ lean_inc(x_8); lean_dec(x_1); x_10 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_10, 0, x_8); -x_11 = l_List_map___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__1(x_9); +x_11 = l_List_map___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFnId___spec__1(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -5805,7 +5811,7 @@ return x_12; } } } -lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFnId___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { if (lean_obj_tag(x_8) == 0) @@ -5835,7 +5841,7 @@ lean_inc(x_14); x_15 = lean_ctor_get(x_12, 1); lean_inc(x_15); lean_dec(x_12); -x_16 = l_List_map___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__1(x_15); +x_16 = l_List_map___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFnId___spec__1(x_15); lean_inc(x_2); x_17 = l_List_append___rarg(x_16, x_2); lean_inc(x_10); @@ -5990,192 +5996,98 @@ return x_46; } } } -lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Init_Lean_Elab_TermApp_14__elabAppFnId(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, uint8_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -if (lean_obj_tag(x_8) == 0) +if (lean_obj_tag(x_2) == 3) { -lean_object* x_11; -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_7); -lean_ctor_set(x_11, 1, x_10); -return x_11; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_12 = lean_ctor_get(x_8, 0); +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_2, 2); lean_inc(x_12); -x_13 = lean_ctor_get(x_8, 1); +x_13 = lean_ctor_get(x_2, 3); lean_inc(x_13); -lean_dec(x_8); -x_14 = lean_ctor_get(x_12, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_12, 1); -lean_inc(x_15); -lean_dec(x_12); -x_16 = l_List_map___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__1(x_15); -lean_inc(x_2); -x_17 = l_List_append___rarg(x_16, x_2); lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_18 = l___private_Init_Lean_Elab_TermApp_13__elabAppLVals(x_1, x_14, x_17, x_3, x_4, x_5, x_6, x_9, x_10); -if (lean_obj_tag(x_18) == 0) +x_14 = l_Lean_Elab_Term_resolveName(x_2, x_12, x_13, x_3, x_10, x_11); +lean_dec(x_2); +if (lean_obj_tag(x_14) == 0) { -uint8_t x_19; -x_19 = !lean_is_exclusive(x_18); -if (x_19 == 0) -{ -lean_object* x_20; -x_20 = lean_array_push(x_7, x_18); -x_7 = x_20; -x_8 = x_13; -goto _start; +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = l_List_foldlM___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFnId___spec__2(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_15, x_10, x_16); +return x_17; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_22 = lean_ctor_get(x_18, 0); -x_23 = lean_ctor_get(x_18, 1); -lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_18); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -x_25 = lean_array_push(x_7, x_24); -x_7 = x_25; -x_8 = x_13; -goto _start; -} -} -else -{ -lean_object* x_27; -x_27 = lean_ctor_get(x_18, 0); -lean_inc(x_27); -if (lean_obj_tag(x_27) == 0) -{ -lean_object* x_28; -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -if (lean_obj_tag(x_28) == 0) -{ -uint8_t x_29; -lean_dec(x_27); -x_29 = !lean_is_exclusive(x_18); -if (x_29 == 0) -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_18, 0); -lean_dec(x_30); -x_31 = lean_ctor_get(x_28, 0); -lean_inc(x_31); -lean_dec(x_28); -lean_ctor_set(x_18, 0, x_31); -x_32 = lean_array_push(x_7, x_18); -x_7 = x_32; -x_8 = x_13; -goto _start; -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_34 = lean_ctor_get(x_18, 1); -lean_inc(x_34); -lean_dec(x_18); -x_35 = lean_ctor_get(x_28, 0); -lean_inc(x_35); -lean_dec(x_28); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_34); -x_37 = lean_array_push(x_7, x_36); -x_7 = x_37; -x_8 = x_13; -goto _start; -} -} -else -{ -uint8_t x_39; -lean_dec(x_13); +uint8_t x_18; lean_dec(x_10); lean_dec(x_9); lean_dec(x_7); +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); lean_dec(x_1); -x_39 = !lean_is_exclusive(x_18); -if (x_39 == 0) +x_18 = !lean_is_exclusive(x_14); +if (x_18 == 0) { -lean_object* x_40; -x_40 = lean_ctor_get(x_18, 0); -lean_dec(x_40); -return x_18; +return x_14; } else { -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_18, 1); -lean_inc(x_41); -lean_dec(x_18); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_27); -lean_ctor_set(x_42, 1, x_41); -return x_42; +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_14, 0); +x_20 = lean_ctor_get(x_14, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_14); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +return x_21; } } } else { -uint8_t x_43; -lean_dec(x_13); +lean_object* x_22; +lean_dec(x_10); lean_dec(x_9); lean_dec(x_7); +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_43 = !lean_is_exclusive(x_18); -if (x_43 == 0) +x_22 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_11); +return x_22; +} +} +} +lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFnId___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: { -lean_object* x_44; lean_object* x_45; -x_44 = lean_ctor_get(x_18, 1); -lean_dec(x_44); -x_45 = lean_ctor_get(x_18, 0); -lean_dec(x_45); -lean_ctor_set(x_18, 1, x_10); -return x_18; +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_6); +lean_dec(x_6); +x_12 = l_List_foldlM___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFnId___spec__2(x_1, x_2, x_3, x_4, x_5, x_11, x_7, x_8, x_9, x_10); +return x_12; } -else +} +lean_object* l___private_Init_Lean_Elab_TermApp_14__elabAppFnId___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: { -lean_object* x_46; -lean_dec(x_18); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_27); -lean_ctor_set(x_46, 1, x_10); -return x_46; +uint8_t x_12; lean_object* x_13; +x_12 = lean_unbox(x_8); +lean_dec(x_8); +x_13 = l___private_Init_Lean_Elab_TermApp_14__elabAppFnId(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_12, x_9, x_10, x_11); +return x_13; } } -} -} -} -} -lean_object* l_List_map___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__4(lean_object* x_1) { +lean_object* l_List_map___main___at___private_Init_Lean_Elab_TermApp_15__elabAppFn___main___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -6197,7 +6109,7 @@ x_6 = l_Lean_Name_toString___closed__1; x_7 = l_Lean_Name_toStringWithSep___main(x_6, x_4); x_8 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_8, 0, x_7); -x_9 = l_List_map___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__4(x_5); +x_9 = l_List_map___main___at___private_Init_Lean_Elab_TermApp_15__elabAppFn___main___spec__1(x_5); lean_ctor_set(x_1, 1, x_9); lean_ctor_set(x_1, 0, x_8); return x_1; @@ -6214,7 +6126,7 @@ x_12 = l_Lean_Name_toString___closed__1; x_13 = l_Lean_Name_toStringWithSep___main(x_12, x_10); x_14 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_14, 0, x_13); -x_15 = l_List_map___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__4(x_11); +x_15 = l_List_map___main___at___private_Init_Lean_Elab_TermApp_15__elabAppFn___main___spec__1(x_11); x_16 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_16, 0, x_14); lean_ctor_set(x_16, 1, x_15); @@ -6223,7 +6135,7 @@ return x_16; } } } -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_TermApp_15__elabAppFn___main___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; uint8_t x_14; @@ -6258,7 +6170,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_19 = l___private_Init_Lean_Elab_TermApp_14__elabAppFn___main(x_1, x_16, x_3, x_4, x_5, x_6, x_7, x_10, x_11, x_12); +x_19 = l___private_Init_Lean_Elab_TermApp_15__elabAppFn___main(x_1, x_16, x_3, x_4, x_5, x_6, x_7, x_10, x_11, x_12); if (lean_obj_tag(x_19) == 0) { lean_object* x_20; lean_object* x_21; @@ -6304,443 +6216,447 @@ return x_26; } } } -lean_object* l___private_Init_Lean_Elab_TermApp_14__elabAppFn___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Init_Lean_Elab_TermApp_15__elabAppFn___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -uint8_t x_11; lean_object* x_166; lean_object* x_167; uint8_t x_168; -lean_inc(x_2); -x_166 = l_Lean_Syntax_getKind(x_2); -x_167 = l_Lean_choiceKind; -x_168 = lean_name_eq(x_166, x_167); -lean_dec(x_166); -if (x_168 == 0) +uint8_t x_11; uint8_t x_149; +x_149 = l_Lean_Syntax_isIdent(x_2); +if (x_149 == 0) { -uint8_t x_169; uint8_t x_292; lean_object* x_366; uint8_t x_367; -x_366 = l_Lean_Parser_Term_explicit___elambda__1___closed__2; +lean_object* x_150; lean_object* x_151; uint8_t x_152; lean_inc(x_2); -x_367 = l_Lean_Syntax_isOfKind(x_2, x_366); -if (x_367 == 0) +x_150 = l_Lean_Syntax_getKind(x_2); +x_151 = l_Lean_choiceKind; +x_152 = lean_name_eq(x_150, x_151); +lean_dec(x_150); +if (x_152 == 0) { -uint8_t x_368; -x_368 = 0; -x_292 = x_368; -goto block_365; +uint8_t x_153; uint8_t x_276; lean_object* x_350; uint8_t x_351; +x_350 = l_Lean_Parser_Term_explicit___elambda__1___closed__2; +lean_inc(x_2); +x_351 = l_Lean_Syntax_isOfKind(x_2, x_350); +if (x_351 == 0) +{ +uint8_t x_352; +x_352 = 0; +x_276 = x_352; +goto block_349; } else { -lean_object* x_369; lean_object* x_370; lean_object* x_371; uint8_t x_372; -x_369 = l_Lean_Syntax_getArgs(x_2); -x_370 = lean_array_get_size(x_369); -lean_dec(x_369); -x_371 = lean_unsigned_to_nat(2u); -x_372 = lean_nat_dec_eq(x_370, x_371); -lean_dec(x_370); -x_292 = x_372; -goto block_365; +lean_object* x_353; lean_object* x_354; lean_object* x_355; uint8_t x_356; +x_353 = l_Lean_Syntax_getArgs(x_2); +x_354 = lean_array_get_size(x_353); +lean_dec(x_353); +x_355 = lean_unsigned_to_nat(2u); +x_356 = lean_nat_dec_eq(x_354, x_355); +lean_dec(x_354); +x_276 = x_356; +goto block_349; } -block_291: +block_275: { -uint8_t x_170; -x_170 = l_coeDecidableEq(x_169); -if (x_170 == 0) +uint8_t x_154; +x_154 = l_coeDecidableEq(x_153); +if (x_154 == 0) { -lean_object* x_171; uint8_t x_172; -x_171 = l_Lean_Parser_Term_arrayRef___elambda__1___closed__2; +lean_object* x_155; uint8_t x_156; +x_155 = l_Lean_Parser_Term_arrayRef___elambda__1___closed__2; lean_inc(x_2); -x_172 = l_Lean_Syntax_isOfKind(x_2, x_171); -if (x_172 == 0) +x_156 = l_Lean_Syntax_isOfKind(x_2, x_155); +if (x_156 == 0) { -uint8_t x_173; -x_173 = l___private_Init_Lean_Elab_Term_4__isCDot___closed__1; -if (x_173 == 0) +uint8_t x_157; +x_157 = l___private_Init_Lean_Elab_Term_4__isCDot___closed__1; +if (x_157 == 0) { -lean_object* x_174; uint8_t x_175; -x_174 = l_Lean_mkTermIdFromIdent___closed__2; +lean_object* x_158; uint8_t x_159; +x_158 = l_Lean_mkTermIdFromIdent___closed__2; lean_inc(x_2); -x_175 = l_Lean_Syntax_isOfKind(x_2, x_174); -if (x_175 == 0) +x_159 = l_Lean_Syntax_isOfKind(x_2, x_158); +if (x_159 == 0) { -uint8_t x_176; -x_176 = 0; -x_11 = x_176; -goto block_165; +uint8_t x_160; +x_160 = 0; +x_11 = x_160; +goto block_148; } else { -lean_object* x_177; lean_object* x_178; lean_object* x_179; uint8_t x_180; -x_177 = l_Lean_Syntax_getArgs(x_2); -x_178 = lean_array_get_size(x_177); -lean_dec(x_177); -x_179 = lean_unsigned_to_nat(2u); -x_180 = lean_nat_dec_eq(x_178, x_179); -lean_dec(x_178); -x_11 = x_180; -goto block_165; +lean_object* x_161; lean_object* x_162; lean_object* x_163; uint8_t x_164; +x_161 = l_Lean_Syntax_getArgs(x_2); +x_162 = lean_array_get_size(x_161); +lean_dec(x_161); +x_163 = lean_unsigned_to_nat(2u); +x_164 = lean_nat_dec_eq(x_162, x_163); +lean_dec(x_162); +x_11 = x_164; +goto block_148; } } else { -lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; -x_181 = lean_unsigned_to_nat(0u); -x_182 = l_Lean_Syntax_getArg(x_2, x_181); -x_183 = lean_unsigned_to_nat(2u); -x_184 = l_Lean_Syntax_getArg(x_2, x_183); +lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; +x_165 = lean_unsigned_to_nat(0u); +x_166 = l_Lean_Syntax_getArg(x_2, x_165); +x_167 = lean_unsigned_to_nat(2u); +x_168 = l_Lean_Syntax_getArg(x_2, x_167); lean_dec(x_2); -x_185 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_185, 0, x_184); -x_186 = lean_alloc_ctor(1, 2, 0); +x_169 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_169, 0, x_168); +x_170 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_170, 0, x_169); +lean_ctor_set(x_170, 1, x_3); +x_2 = x_166; +x_3 = x_170; +goto _start; +} +} +else +{ +lean_object* x_172; lean_object* x_173; lean_object* x_174; uint8_t x_175; uint8_t x_176; +x_172 = l_Lean_Syntax_getArgs(x_2); +x_173 = lean_array_get_size(x_172); +lean_dec(x_172); +x_174 = lean_unsigned_to_nat(4u); +x_175 = lean_nat_dec_eq(x_173, x_174); +x_176 = l_coeDecidableEq(x_175); +if (x_176 == 0) +{ +lean_object* x_177; uint8_t x_178; +x_177 = l_Lean_mkTermIdFromIdent___closed__2; +lean_inc(x_2); +x_178 = l_Lean_Syntax_isOfKind(x_2, x_177); +if (x_178 == 0) +{ +uint8_t x_179; +lean_dec(x_173); +x_179 = 0; +x_11 = x_179; +goto block_148; +} +else +{ +lean_object* x_180; uint8_t x_181; +x_180 = lean_unsigned_to_nat(2u); +x_181 = lean_nat_dec_eq(x_173, x_180); +lean_dec(x_173); +x_11 = x_181; +goto block_148; +} +} +else +{ +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_dec(x_173); +x_182 = lean_unsigned_to_nat(0u); +x_183 = l_Lean_Syntax_getArg(x_2, x_182); +x_184 = lean_unsigned_to_nat(2u); +x_185 = l_Lean_Syntax_getArg(x_2, x_184); +lean_dec(x_2); +x_186 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_186, 0, x_185); -lean_ctor_set(x_186, 1, x_3); -x_2 = x_182; -x_3 = x_186; -goto _start; -} -} -else -{ -lean_object* x_188; lean_object* x_189; lean_object* x_190; uint8_t x_191; uint8_t x_192; -x_188 = l_Lean_Syntax_getArgs(x_2); -x_189 = lean_array_get_size(x_188); -lean_dec(x_188); -x_190 = lean_unsigned_to_nat(4u); -x_191 = lean_nat_dec_eq(x_189, x_190); -x_192 = l_coeDecidableEq(x_191); -if (x_192 == 0) -{ -lean_object* x_193; uint8_t x_194; -x_193 = l_Lean_mkTermIdFromIdent___closed__2; -lean_inc(x_2); -x_194 = l_Lean_Syntax_isOfKind(x_2, x_193); -if (x_194 == 0) -{ -uint8_t x_195; -lean_dec(x_189); -x_195 = 0; -x_11 = x_195; -goto block_165; -} -else -{ -lean_object* x_196; uint8_t x_197; -x_196 = lean_unsigned_to_nat(2u); -x_197 = lean_nat_dec_eq(x_189, x_196); -lean_dec(x_189); -x_11 = x_197; -goto block_165; -} -} -else -{ -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_dec(x_189); -x_198 = lean_unsigned_to_nat(0u); -x_199 = l_Lean_Syntax_getArg(x_2, x_198); -x_200 = lean_unsigned_to_nat(2u); -x_201 = l_Lean_Syntax_getArg(x_2, x_200); -lean_dec(x_2); -x_202 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_202, 0, x_201); -x_203 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_203, 0, x_202); -lean_ctor_set(x_203, 1, x_3); -x_2 = x_199; -x_3 = x_203; +x_187 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_187, 0, x_186); +lean_ctor_set(x_187, 1, x_3); +x_2 = x_183; +x_3 = x_187; goto _start; } } } else { -lean_object* x_205; lean_object* x_206; lean_object* x_207; uint8_t x_208; uint8_t x_209; -x_205 = lean_unsigned_to_nat(2u); -x_206 = l_Lean_Syntax_getArg(x_2, x_205); -x_207 = l_Lean_fieldIdxKind___closed__2; -lean_inc(x_206); -x_208 = l_Lean_Syntax_isOfKind(x_206, x_207); -x_209 = l_coeDecidableEq(x_208); -if (x_209 == 0) +lean_object* x_189; lean_object* x_190; lean_object* x_191; uint8_t x_192; uint8_t x_193; +x_189 = lean_unsigned_to_nat(2u); +x_190 = l_Lean_Syntax_getArg(x_2, x_189); +x_191 = l_Lean_fieldIdxKind___closed__2; +lean_inc(x_190); +x_192 = l_Lean_Syntax_isOfKind(x_190, x_191); +x_193 = l_coeDecidableEq(x_192); +if (x_193 == 0) { -lean_object* x_210; uint8_t x_211; uint8_t x_212; -x_210 = l_Lean_identKind___closed__2; +lean_object* x_194; uint8_t x_195; uint8_t x_196; +x_194 = l_Lean_identKind___closed__2; +lean_inc(x_190); +x_195 = l_Lean_Syntax_isOfKind(x_190, x_194); +x_196 = l_coeDecidableEq(x_195); +if (x_196 == 0) +{ +lean_object* x_197; uint8_t x_198; lean_object* x_199; +lean_dec(x_190); +x_197 = lean_box(0); +x_198 = 1; +lean_inc(x_9); +x_199 = l_Lean_Elab_Term_elabTermAux___main(x_197, x_198, x_2, x_9, x_10); +if (lean_obj_tag(x_199) == 0) +{ +uint8_t x_200; +x_200 = !lean_is_exclusive(x_199); +if (x_200 == 0) +{ +lean_object* x_201; lean_object* x_202; lean_object* x_203; +x_201 = lean_ctor_get(x_199, 0); +x_202 = lean_ctor_get(x_199, 1); +lean_inc(x_202); +x_203 = l___private_Init_Lean_Elab_TermApp_13__elabAppLVals(x_1, x_201, x_3, x_4, x_5, x_6, x_7, x_9, x_202); +if (lean_obj_tag(x_203) == 0) +{ +uint8_t x_204; +x_204 = !lean_is_exclusive(x_203); +if (x_204 == 0) +{ +lean_object* x_205; +x_205 = lean_array_push(x_8, x_203); +lean_ctor_set(x_199, 0, x_205); +return x_199; +} +else +{ +lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; +x_206 = lean_ctor_get(x_203, 0); +x_207 = lean_ctor_get(x_203, 1); +lean_inc(x_207); lean_inc(x_206); -x_211 = l_Lean_Syntax_isOfKind(x_206, x_210); -x_212 = l_coeDecidableEq(x_211); +lean_dec(x_203); +x_208 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_208, 0, x_206); +lean_ctor_set(x_208, 1, x_207); +x_209 = lean_array_push(x_8, x_208); +lean_ctor_set(x_199, 0, x_209); +return x_199; +} +} +else +{ +lean_object* x_210; +x_210 = lean_ctor_get(x_203, 0); +lean_inc(x_210); +if (lean_obj_tag(x_210) == 0) +{ +lean_object* x_211; +x_211 = lean_ctor_get(x_210, 0); +lean_inc(x_211); +if (lean_obj_tag(x_211) == 0) +{ +uint8_t x_212; +lean_dec(x_210); +x_212 = !lean_is_exclusive(x_203); if (x_212 == 0) { -lean_object* x_213; uint8_t x_214; lean_object* x_215; -lean_dec(x_206); -x_213 = lean_box(0); -x_214 = 1; -lean_inc(x_9); -x_215 = l_Lean_Elab_Term_elabTermAux___main(x_213, x_214, x_2, x_9, x_10); -if (lean_obj_tag(x_215) == 0) +lean_object* x_213; lean_object* x_214; lean_object* x_215; +x_213 = lean_ctor_get(x_203, 0); +lean_dec(x_213); +x_214 = lean_ctor_get(x_211, 0); +lean_inc(x_214); +lean_dec(x_211); +lean_ctor_set(x_203, 0, x_214); +x_215 = lean_array_push(x_8, x_203); +lean_ctor_set(x_199, 0, x_215); +return x_199; +} +else { -uint8_t x_216; -x_216 = !lean_is_exclusive(x_215); -if (x_216 == 0) -{ -lean_object* x_217; lean_object* x_218; lean_object* x_219; -x_217 = lean_ctor_get(x_215, 0); -x_218 = lean_ctor_get(x_215, 1); -lean_inc(x_218); -x_219 = l___private_Init_Lean_Elab_TermApp_13__elabAppLVals(x_1, x_217, x_3, x_4, x_5, x_6, x_7, x_9, x_218); -if (lean_obj_tag(x_219) == 0) +lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; +x_216 = lean_ctor_get(x_203, 1); +lean_inc(x_216); +lean_dec(x_203); +x_217 = lean_ctor_get(x_211, 0); +lean_inc(x_217); +lean_dec(x_211); +x_218 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_218, 0, x_217); +lean_ctor_set(x_218, 1, x_216); +x_219 = lean_array_push(x_8, x_218); +lean_ctor_set(x_199, 0, x_219); +return x_199; +} +} +else { uint8_t x_220; -x_220 = !lean_is_exclusive(x_219); +lean_free_object(x_199); +lean_dec(x_202); +lean_dec(x_8); +x_220 = !lean_is_exclusive(x_203); if (x_220 == 0) { lean_object* x_221; -x_221 = lean_array_push(x_8, x_219); -lean_ctor_set(x_215, 0, x_221); -return x_215; +x_221 = lean_ctor_get(x_203, 0); +lean_dec(x_221); +return x_203; } else { -lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; -x_222 = lean_ctor_get(x_219, 0); -x_223 = lean_ctor_get(x_219, 1); -lean_inc(x_223); +lean_object* x_222; lean_object* x_223; +x_222 = lean_ctor_get(x_203, 1); lean_inc(x_222); -lean_dec(x_219); -x_224 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_224, 0, x_222); -lean_ctor_set(x_224, 1, x_223); -x_225 = lean_array_push(x_8, x_224); -lean_ctor_set(x_215, 0, x_225); -return x_215; +lean_dec(x_203); +x_223 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_223, 0, x_210); +lean_ctor_set(x_223, 1, x_222); +return x_223; +} } } else { -lean_object* x_226; -x_226 = lean_ctor_get(x_219, 0); -lean_inc(x_226); -if (lean_obj_tag(x_226) == 0) +uint8_t x_224; +lean_free_object(x_199); +lean_dec(x_8); +x_224 = !lean_is_exclusive(x_203); +if (x_224 == 0) +{ +lean_object* x_225; lean_object* x_226; +x_225 = lean_ctor_get(x_203, 1); +lean_dec(x_225); +x_226 = lean_ctor_get(x_203, 0); +lean_dec(x_226); +lean_ctor_set(x_203, 1, x_202); +return x_203; +} +else { lean_object* x_227; -x_227 = lean_ctor_get(x_226, 0); -lean_inc(x_227); -if (lean_obj_tag(x_227) == 0) -{ -uint8_t x_228; -lean_dec(x_226); -x_228 = !lean_is_exclusive(x_219); -if (x_228 == 0) -{ -lean_object* x_229; lean_object* x_230; lean_object* x_231; -x_229 = lean_ctor_get(x_219, 0); -lean_dec(x_229); -x_230 = lean_ctor_get(x_227, 0); -lean_inc(x_230); -lean_dec(x_227); -lean_ctor_set(x_219, 0, x_230); -x_231 = lean_array_push(x_8, x_219); -lean_ctor_set(x_215, 0, x_231); -return x_215; +lean_dec(x_203); +x_227 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_227, 0, x_210); +lean_ctor_set(x_227, 1, x_202); +return x_227; +} +} +} } else { -lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; -x_232 = lean_ctor_get(x_219, 1); +lean_object* x_228; lean_object* x_229; lean_object* x_230; +x_228 = lean_ctor_get(x_199, 0); +x_229 = lean_ctor_get(x_199, 1); +lean_inc(x_229); +lean_inc(x_228); +lean_dec(x_199); +lean_inc(x_229); +x_230 = l___private_Init_Lean_Elab_TermApp_13__elabAppLVals(x_1, x_228, x_3, x_4, x_5, x_6, x_7, x_9, x_229); +if (lean_obj_tag(x_230) == 0) +{ +lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; +x_231 = lean_ctor_get(x_230, 0); +lean_inc(x_231); +x_232 = lean_ctor_get(x_230, 1); lean_inc(x_232); -lean_dec(x_219); -x_233 = lean_ctor_get(x_227, 0); -lean_inc(x_233); -lean_dec(x_227); -x_234 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_234, 0, x_233); +if (lean_is_exclusive(x_230)) { + lean_ctor_release(x_230, 0); + lean_ctor_release(x_230, 1); + x_233 = x_230; +} else { + lean_dec_ref(x_230); + x_233 = lean_box(0); +} +if (lean_is_scalar(x_233)) { + x_234 = lean_alloc_ctor(0, 2, 0); +} else { + x_234 = x_233; +} +lean_ctor_set(x_234, 0, x_231); lean_ctor_set(x_234, 1, x_232); x_235 = lean_array_push(x_8, x_234); -lean_ctor_set(x_215, 0, x_235); -return x_215; -} +x_236 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_236, 0, x_235); +lean_ctor_set(x_236, 1, x_229); +return x_236; } else { -uint8_t x_236; -lean_free_object(x_215); -lean_dec(x_218); -lean_dec(x_8); -x_236 = !lean_is_exclusive(x_219); -if (x_236 == 0) -{ lean_object* x_237; -x_237 = lean_ctor_get(x_219, 0); -lean_dec(x_237); -return x_219; -} -else +x_237 = lean_ctor_get(x_230, 0); +lean_inc(x_237); +if (lean_obj_tag(x_237) == 0) { -lean_object* x_238; lean_object* x_239; -x_238 = lean_ctor_get(x_219, 1); +lean_object* x_238; +x_238 = lean_ctor_get(x_237, 0); lean_inc(x_238); -lean_dec(x_219); -x_239 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_239, 0, x_226); -lean_ctor_set(x_239, 1, x_238); -return x_239; +if (lean_obj_tag(x_238) == 0) +{ +lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; +lean_dec(x_237); +x_239 = lean_ctor_get(x_230, 1); +lean_inc(x_239); +if (lean_is_exclusive(x_230)) { + lean_ctor_release(x_230, 0); + lean_ctor_release(x_230, 1); + x_240 = x_230; +} else { + lean_dec_ref(x_230); + x_240 = lean_box(0); } +x_241 = lean_ctor_get(x_238, 0); +lean_inc(x_241); +lean_dec(x_238); +if (lean_is_scalar(x_240)) { + x_242 = lean_alloc_ctor(1, 2, 0); +} else { + x_242 = x_240; } +lean_ctor_set(x_242, 0, x_241); +lean_ctor_set(x_242, 1, x_239); +x_243 = lean_array_push(x_8, x_242); +x_244 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_244, 0, x_243); +lean_ctor_set(x_244, 1, x_229); +return x_244; } else { -uint8_t x_240; -lean_free_object(x_215); +lean_object* x_245; lean_object* x_246; lean_object* x_247; +lean_dec(x_229); lean_dec(x_8); -x_240 = !lean_is_exclusive(x_219); -if (x_240 == 0) -{ -lean_object* x_241; lean_object* x_242; -x_241 = lean_ctor_get(x_219, 1); -lean_dec(x_241); -x_242 = lean_ctor_get(x_219, 0); -lean_dec(x_242); -lean_ctor_set(x_219, 1, x_218); -return x_219; -} -else -{ -lean_object* x_243; -lean_dec(x_219); -x_243 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_243, 0, x_226); -lean_ctor_set(x_243, 1, x_218); -return x_243; -} -} -} -} -else -{ -lean_object* x_244; lean_object* x_245; lean_object* x_246; -x_244 = lean_ctor_get(x_215, 0); -x_245 = lean_ctor_get(x_215, 1); +x_245 = lean_ctor_get(x_230, 1); lean_inc(x_245); -lean_inc(x_244); -lean_dec(x_215); -lean_inc(x_245); -x_246 = l___private_Init_Lean_Elab_TermApp_13__elabAppLVals(x_1, x_244, x_3, x_4, x_5, x_6, x_7, x_9, x_245); -if (lean_obj_tag(x_246) == 0) -{ -lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; -x_247 = lean_ctor_get(x_246, 0); -lean_inc(x_247); -x_248 = lean_ctor_get(x_246, 1); -lean_inc(x_248); -if (lean_is_exclusive(x_246)) { - lean_ctor_release(x_246, 0); - lean_ctor_release(x_246, 1); - x_249 = x_246; +if (lean_is_exclusive(x_230)) { + lean_ctor_release(x_230, 0); + lean_ctor_release(x_230, 1); + x_246 = x_230; } else { - lean_dec_ref(x_246); - x_249 = lean_box(0); + lean_dec_ref(x_230); + x_246 = lean_box(0); } -if (lean_is_scalar(x_249)) { - x_250 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_246)) { + x_247 = lean_alloc_ctor(1, 2, 0); } else { - x_250 = x_249; + x_247 = x_246; +} +lean_ctor_set(x_247, 0, x_237); +lean_ctor_set(x_247, 1, x_245); +return x_247; } -lean_ctor_set(x_250, 0, x_247); -lean_ctor_set(x_250, 1, x_248); -x_251 = lean_array_push(x_8, x_250); -x_252 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_252, 0, x_251); -lean_ctor_set(x_252, 1, x_245); -return x_252; } else { -lean_object* x_253; -x_253 = lean_ctor_get(x_246, 0); -lean_inc(x_253); -if (lean_obj_tag(x_253) == 0) -{ -lean_object* x_254; -x_254 = lean_ctor_get(x_253, 0); -lean_inc(x_254); -if (lean_obj_tag(x_254) == 0) -{ -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_dec(x_253); -x_255 = lean_ctor_get(x_246, 1); -lean_inc(x_255); -if (lean_is_exclusive(x_246)) { - lean_ctor_release(x_246, 0); - lean_ctor_release(x_246, 1); - x_256 = x_246; -} else { - lean_dec_ref(x_246); - x_256 = lean_box(0); -} -x_257 = lean_ctor_get(x_254, 0); -lean_inc(x_257); -lean_dec(x_254); -if (lean_is_scalar(x_256)) { - x_258 = lean_alloc_ctor(1, 2, 0); -} else { - x_258 = x_256; -} -lean_ctor_set(x_258, 0, x_257); -lean_ctor_set(x_258, 1, x_255); -x_259 = lean_array_push(x_8, x_258); -x_260 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_260, 0, x_259); -lean_ctor_set(x_260, 1, x_245); -return x_260; -} -else -{ -lean_object* x_261; lean_object* x_262; lean_object* x_263; -lean_dec(x_245); +lean_object* x_248; lean_object* x_249; lean_dec(x_8); -x_261 = lean_ctor_get(x_246, 1); -lean_inc(x_261); -if (lean_is_exclusive(x_246)) { - lean_ctor_release(x_246, 0); - lean_ctor_release(x_246, 1); - x_262 = x_246; +if (lean_is_exclusive(x_230)) { + lean_ctor_release(x_230, 0); + lean_ctor_release(x_230, 1); + x_248 = x_230; } else { - lean_dec_ref(x_246); - x_262 = lean_box(0); + lean_dec_ref(x_230); + x_248 = lean_box(0); } -if (lean_is_scalar(x_262)) { - x_263 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_248)) { + x_249 = lean_alloc_ctor(1, 2, 0); } else { - x_263 = x_262; + x_249 = x_248; } -lean_ctor_set(x_263, 0, x_253); -lean_ctor_set(x_263, 1, x_261); -return x_263; -} -} -else -{ -lean_object* x_264; lean_object* x_265; -lean_dec(x_8); -if (lean_is_exclusive(x_246)) { - lean_ctor_release(x_246, 0); - lean_ctor_release(x_246, 1); - x_264 = x_246; -} else { - lean_dec_ref(x_246); - x_264 = lean_box(0); -} -if (lean_is_scalar(x_264)) { - x_265 = lean_alloc_ctor(1, 2, 0); -} else { - x_265 = x_264; -} -lean_ctor_set(x_265, 0, x_253); -lean_ctor_set(x_265, 1, x_245); -return x_265; +lean_ctor_set(x_249, 0, x_237); +lean_ctor_set(x_249, 1, x_229); +return x_249; } } } } else { -uint8_t x_266; +uint8_t x_250; lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); @@ -6748,399 +6664,399 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_266 = !lean_is_exclusive(x_215); -if (x_266 == 0) +x_250 = !lean_is_exclusive(x_199); +if (x_250 == 0) { -return x_215; +return x_199; } else { -lean_object* x_267; lean_object* x_268; lean_object* x_269; -x_267 = lean_ctor_get(x_215, 0); -x_268 = lean_ctor_get(x_215, 1); -lean_inc(x_268); -lean_inc(x_267); -lean_dec(x_215); +lean_object* x_251; lean_object* x_252; lean_object* x_253; +x_251 = lean_ctor_get(x_199, 0); +x_252 = lean_ctor_get(x_199, 1); +lean_inc(x_252); +lean_inc(x_251); +lean_dec(x_199); +x_253 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_253, 0, x_251); +lean_ctor_set(x_253, 1, x_252); +return x_253; +} +} +} +else +{ +lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; +x_254 = l_Lean_Syntax_getId(x_190); +lean_dec(x_190); +x_255 = l_Lean_Name_components(x_254); +x_256 = l_List_map___main___at___private_Init_Lean_Elab_TermApp_15__elabAppFn___main___spec__1(x_255); +x_257 = lean_unsigned_to_nat(0u); +x_258 = l_Lean_Syntax_getArg(x_2, x_257); +lean_dec(x_2); +x_259 = l_List_append___rarg(x_256, x_3); +x_2 = x_258; +x_3 = x_259; +goto _start; +} +} +else +{ +lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; +x_261 = l_Lean_fieldIdxKind; +x_262 = l_Lean_Syntax_isNatLitAux(x_261, x_190); +lean_dec(x_190); +x_263 = lean_unsigned_to_nat(0u); +x_264 = l_Lean_Syntax_getArg(x_2, x_263); +lean_dec(x_2); +if (lean_obj_tag(x_262) == 0) +{ +lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; +x_265 = l_Nat_Inhabited; +x_266 = l_Option_get_x21___rarg___closed__3; +x_267 = lean_panic_fn(x_265, x_266); +x_268 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_268, 0, x_267); x_269 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_269, 0, x_267); -lean_ctor_set(x_269, 1, x_268); -return x_269; -} -} -} -else -{ -lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; -x_270 = l_Lean_Syntax_getId(x_206); -lean_dec(x_206); -x_271 = l_Lean_Name_components(x_270); -x_272 = l_List_map___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__4(x_271); -x_273 = lean_unsigned_to_nat(0u); -x_274 = l_Lean_Syntax_getArg(x_2, x_273); -lean_dec(x_2); -x_275 = l_List_append___rarg(x_272, x_3); -x_2 = x_274; -x_3 = x_275; -goto _start; -} -} -else -{ -lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; -x_277 = l_Lean_fieldIdxKind; -x_278 = l_Lean_Syntax_isNatLitAux(x_277, x_206); -lean_dec(x_206); -x_279 = lean_unsigned_to_nat(0u); -x_280 = l_Lean_Syntax_getArg(x_2, x_279); -lean_dec(x_2); -if (lean_obj_tag(x_278) == 0) -{ -lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; -x_281 = l_Nat_Inhabited; -x_282 = l_Option_get_x21___rarg___closed__3; -x_283 = lean_panic_fn(x_281, x_282); -x_284 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_284, 0, x_283); -x_285 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_285, 0, x_284); -lean_ctor_set(x_285, 1, x_3); -x_2 = x_280; -x_3 = x_285; +lean_ctor_set(x_269, 0, x_268); +lean_ctor_set(x_269, 1, x_3); +x_2 = x_264; +x_3 = x_269; goto _start; } else { -lean_object* x_287; lean_object* x_288; lean_object* x_289; -x_287 = lean_ctor_get(x_278, 0); -lean_inc(x_287); -lean_dec(x_278); -x_288 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_288, 0, x_287); -x_289 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_289, 0, x_288); -lean_ctor_set(x_289, 1, x_3); -x_2 = x_280; -x_3 = x_289; +lean_object* x_271; lean_object* x_272; lean_object* x_273; +x_271 = lean_ctor_get(x_262, 0); +lean_inc(x_271); +lean_dec(x_262); +x_272 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_272, 0, x_271); +x_273 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_273, 0, x_272); +lean_ctor_set(x_273, 1, x_3); +x_2 = x_264; +x_3 = x_273; goto _start; } } } } -block_365: +block_349: +{ +uint8_t x_277; +x_277 = l_coeDecidableEq(x_276); +if (x_277 == 0) +{ +lean_object* x_278; uint8_t x_279; +x_278 = l_Lean_Parser_Term_proj___elambda__1___closed__2; +lean_inc(x_2); +x_279 = l_Lean_Syntax_isOfKind(x_2, x_278); +if (x_279 == 0) +{ +uint8_t x_280; +x_280 = 0; +x_153 = x_280; +goto block_275; +} +else +{ +lean_object* x_281; lean_object* x_282; lean_object* x_283; uint8_t x_284; +x_281 = l_Lean_Syntax_getArgs(x_2); +x_282 = lean_array_get_size(x_281); +lean_dec(x_281); +x_283 = lean_unsigned_to_nat(3u); +x_284 = lean_nat_dec_eq(x_282, x_283); +lean_dec(x_282); +x_153 = x_284; +goto block_275; +} +} +else +{ +lean_object* x_285; lean_object* x_286; lean_object* x_287; uint8_t x_288; uint8_t x_289; +x_285 = lean_unsigned_to_nat(1u); +x_286 = l_Lean_Syntax_getArg(x_2, x_285); +x_287 = l_Lean_mkTermIdFromIdent___closed__2; +lean_inc(x_286); +x_288 = l_Lean_Syntax_isOfKind(x_286, x_287); +x_289 = l_coeDecidableEq(x_288); +if (x_289 == 0) +{ +lean_object* x_290; uint8_t x_291; lean_object* x_292; +lean_dec(x_286); +x_290 = lean_box(0); +x_291 = 1; +lean_inc(x_9); +x_292 = l_Lean_Elab_Term_elabTermAux___main(x_290, x_291, x_2, x_9, x_10); +if (lean_obj_tag(x_292) == 0) { uint8_t x_293; -x_293 = l_coeDecidableEq(x_292); +x_293 = !lean_is_exclusive(x_292); if (x_293 == 0) { -lean_object* x_294; uint8_t x_295; -x_294 = l_Lean_Parser_Term_proj___elambda__1___closed__2; -lean_inc(x_2); -x_295 = l_Lean_Syntax_isOfKind(x_2, x_294); -if (x_295 == 0) +lean_object* x_294; lean_object* x_295; lean_object* x_296; +x_294 = lean_ctor_get(x_292, 0); +x_295 = lean_ctor_get(x_292, 1); +lean_inc(x_295); +x_296 = l___private_Init_Lean_Elab_TermApp_13__elabAppLVals(x_1, x_294, x_3, x_4, x_5, x_6, x_7, x_9, x_295); +if (lean_obj_tag(x_296) == 0) { -uint8_t x_296; -x_296 = 0; -x_169 = x_296; -goto block_291; +uint8_t x_297; +x_297 = !lean_is_exclusive(x_296); +if (x_297 == 0) +{ +lean_object* x_298; +x_298 = lean_array_push(x_8, x_296); +lean_ctor_set(x_292, 0, x_298); +return x_292; } else { -lean_object* x_297; lean_object* x_298; lean_object* x_299; uint8_t x_300; -x_297 = l_Lean_Syntax_getArgs(x_2); -x_298 = lean_array_get_size(x_297); -lean_dec(x_297); -x_299 = lean_unsigned_to_nat(3u); -x_300 = lean_nat_dec_eq(x_298, x_299); -lean_dec(x_298); -x_169 = x_300; -goto block_291; +lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; +x_299 = lean_ctor_get(x_296, 0); +x_300 = lean_ctor_get(x_296, 1); +lean_inc(x_300); +lean_inc(x_299); +lean_dec(x_296); +x_301 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_301, 0, x_299); +lean_ctor_set(x_301, 1, x_300); +x_302 = lean_array_push(x_8, x_301); +lean_ctor_set(x_292, 0, x_302); +return x_292; } } else { -lean_object* x_301; lean_object* x_302; lean_object* x_303; uint8_t x_304; uint8_t x_305; -x_301 = lean_unsigned_to_nat(1u); -x_302 = l_Lean_Syntax_getArg(x_2, x_301); -x_303 = l_Lean_mkTermIdFromIdent___closed__2; -lean_inc(x_302); -x_304 = l_Lean_Syntax_isOfKind(x_302, x_303); -x_305 = l_coeDecidableEq(x_304); +lean_object* x_303; +x_303 = lean_ctor_get(x_296, 0); +lean_inc(x_303); +if (lean_obj_tag(x_303) == 0) +{ +lean_object* x_304; +x_304 = lean_ctor_get(x_303, 0); +lean_inc(x_304); +if (lean_obj_tag(x_304) == 0) +{ +uint8_t x_305; +lean_dec(x_303); +x_305 = !lean_is_exclusive(x_296); if (x_305 == 0) { -lean_object* x_306; uint8_t x_307; lean_object* x_308; -lean_dec(x_302); -x_306 = lean_box(0); -x_307 = 1; -lean_inc(x_9); -x_308 = l_Lean_Elab_Term_elabTermAux___main(x_306, x_307, x_2, x_9, x_10); -if (lean_obj_tag(x_308) == 0) +lean_object* x_306; lean_object* x_307; lean_object* x_308; +x_306 = lean_ctor_get(x_296, 0); +lean_dec(x_306); +x_307 = lean_ctor_get(x_304, 0); +lean_inc(x_307); +lean_dec(x_304); +lean_ctor_set(x_296, 0, x_307); +x_308 = lean_array_push(x_8, x_296); +lean_ctor_set(x_292, 0, x_308); +return x_292; +} +else { -uint8_t x_309; -x_309 = !lean_is_exclusive(x_308); -if (x_309 == 0) -{ -lean_object* x_310; lean_object* x_311; lean_object* x_312; -x_310 = lean_ctor_get(x_308, 0); -x_311 = lean_ctor_get(x_308, 1); -lean_inc(x_311); -x_312 = l___private_Init_Lean_Elab_TermApp_13__elabAppLVals(x_1, x_310, x_3, x_4, x_5, x_6, x_7, x_9, x_311); -if (lean_obj_tag(x_312) == 0) +lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; +x_309 = lean_ctor_get(x_296, 1); +lean_inc(x_309); +lean_dec(x_296); +x_310 = lean_ctor_get(x_304, 0); +lean_inc(x_310); +lean_dec(x_304); +x_311 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_311, 0, x_310); +lean_ctor_set(x_311, 1, x_309); +x_312 = lean_array_push(x_8, x_311); +lean_ctor_set(x_292, 0, x_312); +return x_292; +} +} +else { uint8_t x_313; -x_313 = !lean_is_exclusive(x_312); +lean_free_object(x_292); +lean_dec(x_295); +lean_dec(x_8); +x_313 = !lean_is_exclusive(x_296); if (x_313 == 0) { lean_object* x_314; -x_314 = lean_array_push(x_8, x_312); -lean_ctor_set(x_308, 0, x_314); -return x_308; +x_314 = lean_ctor_get(x_296, 0); +lean_dec(x_314); +return x_296; } else { -lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; -x_315 = lean_ctor_get(x_312, 0); -x_316 = lean_ctor_get(x_312, 1); -lean_inc(x_316); +lean_object* x_315; lean_object* x_316; +x_315 = lean_ctor_get(x_296, 1); lean_inc(x_315); -lean_dec(x_312); -x_317 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_317, 0, x_315); -lean_ctor_set(x_317, 1, x_316); -x_318 = lean_array_push(x_8, x_317); -lean_ctor_set(x_308, 0, x_318); -return x_308; +lean_dec(x_296); +x_316 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_316, 0, x_303); +lean_ctor_set(x_316, 1, x_315); +return x_316; +} } } else { -lean_object* x_319; -x_319 = lean_ctor_get(x_312, 0); -lean_inc(x_319); -if (lean_obj_tag(x_319) == 0) +uint8_t x_317; +lean_free_object(x_292); +lean_dec(x_8); +x_317 = !lean_is_exclusive(x_296); +if (x_317 == 0) +{ +lean_object* x_318; lean_object* x_319; +x_318 = lean_ctor_get(x_296, 1); +lean_dec(x_318); +x_319 = lean_ctor_get(x_296, 0); +lean_dec(x_319); +lean_ctor_set(x_296, 1, x_295); +return x_296; +} +else { lean_object* x_320; -x_320 = lean_ctor_get(x_319, 0); -lean_inc(x_320); -if (lean_obj_tag(x_320) == 0) -{ -uint8_t x_321; -lean_dec(x_319); -x_321 = !lean_is_exclusive(x_312); -if (x_321 == 0) -{ -lean_object* x_322; lean_object* x_323; lean_object* x_324; -x_322 = lean_ctor_get(x_312, 0); -lean_dec(x_322); -x_323 = lean_ctor_get(x_320, 0); -lean_inc(x_323); -lean_dec(x_320); -lean_ctor_set(x_312, 0, x_323); -x_324 = lean_array_push(x_8, x_312); -lean_ctor_set(x_308, 0, x_324); -return x_308; +lean_dec(x_296); +x_320 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_320, 0, x_303); +lean_ctor_set(x_320, 1, x_295); +return x_320; +} +} +} } else { -lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; -x_325 = lean_ctor_get(x_312, 1); +lean_object* x_321; lean_object* x_322; lean_object* x_323; +x_321 = lean_ctor_get(x_292, 0); +x_322 = lean_ctor_get(x_292, 1); +lean_inc(x_322); +lean_inc(x_321); +lean_dec(x_292); +lean_inc(x_322); +x_323 = l___private_Init_Lean_Elab_TermApp_13__elabAppLVals(x_1, x_321, x_3, x_4, x_5, x_6, x_7, x_9, x_322); +if (lean_obj_tag(x_323) == 0) +{ +lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; +x_324 = lean_ctor_get(x_323, 0); +lean_inc(x_324); +x_325 = lean_ctor_get(x_323, 1); lean_inc(x_325); -lean_dec(x_312); -x_326 = lean_ctor_get(x_320, 0); -lean_inc(x_326); -lean_dec(x_320); -x_327 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_327, 0, x_326); +if (lean_is_exclusive(x_323)) { + lean_ctor_release(x_323, 0); + lean_ctor_release(x_323, 1); + x_326 = x_323; +} else { + lean_dec_ref(x_323); + x_326 = lean_box(0); +} +if (lean_is_scalar(x_326)) { + x_327 = lean_alloc_ctor(0, 2, 0); +} else { + x_327 = x_326; +} +lean_ctor_set(x_327, 0, x_324); lean_ctor_set(x_327, 1, x_325); x_328 = lean_array_push(x_8, x_327); -lean_ctor_set(x_308, 0, x_328); -return x_308; -} +x_329 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_329, 0, x_328); +lean_ctor_set(x_329, 1, x_322); +return x_329; } else { -uint8_t x_329; -lean_free_object(x_308); -lean_dec(x_311); -lean_dec(x_8); -x_329 = !lean_is_exclusive(x_312); -if (x_329 == 0) -{ lean_object* x_330; -x_330 = lean_ctor_get(x_312, 0); -lean_dec(x_330); -return x_312; -} -else +x_330 = lean_ctor_get(x_323, 0); +lean_inc(x_330); +if (lean_obj_tag(x_330) == 0) { -lean_object* x_331; lean_object* x_332; -x_331 = lean_ctor_get(x_312, 1); +lean_object* x_331; +x_331 = lean_ctor_get(x_330, 0); lean_inc(x_331); -lean_dec(x_312); -x_332 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_332, 0, x_319); -lean_ctor_set(x_332, 1, x_331); -return x_332; +if (lean_obj_tag(x_331) == 0) +{ +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_dec(x_330); +x_332 = lean_ctor_get(x_323, 1); +lean_inc(x_332); +if (lean_is_exclusive(x_323)) { + lean_ctor_release(x_323, 0); + lean_ctor_release(x_323, 1); + x_333 = x_323; +} else { + lean_dec_ref(x_323); + x_333 = lean_box(0); } +x_334 = lean_ctor_get(x_331, 0); +lean_inc(x_334); +lean_dec(x_331); +if (lean_is_scalar(x_333)) { + x_335 = lean_alloc_ctor(1, 2, 0); +} else { + x_335 = x_333; } +lean_ctor_set(x_335, 0, x_334); +lean_ctor_set(x_335, 1, x_332); +x_336 = lean_array_push(x_8, x_335); +x_337 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_337, 0, x_336); +lean_ctor_set(x_337, 1, x_322); +return x_337; } else { -uint8_t x_333; -lean_free_object(x_308); +lean_object* x_338; lean_object* x_339; lean_object* x_340; +lean_dec(x_322); lean_dec(x_8); -x_333 = !lean_is_exclusive(x_312); -if (x_333 == 0) -{ -lean_object* x_334; lean_object* x_335; -x_334 = lean_ctor_get(x_312, 1); -lean_dec(x_334); -x_335 = lean_ctor_get(x_312, 0); -lean_dec(x_335); -lean_ctor_set(x_312, 1, x_311); -return x_312; -} -else -{ -lean_object* x_336; -lean_dec(x_312); -x_336 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_336, 0, x_319); -lean_ctor_set(x_336, 1, x_311); -return x_336; -} -} -} -} -else -{ -lean_object* x_337; lean_object* x_338; lean_object* x_339; -x_337 = lean_ctor_get(x_308, 0); -x_338 = lean_ctor_get(x_308, 1); +x_338 = lean_ctor_get(x_323, 1); lean_inc(x_338); -lean_inc(x_337); -lean_dec(x_308); -lean_inc(x_338); -x_339 = l___private_Init_Lean_Elab_TermApp_13__elabAppLVals(x_1, x_337, x_3, x_4, x_5, x_6, x_7, x_9, x_338); -if (lean_obj_tag(x_339) == 0) -{ -lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; -x_340 = lean_ctor_get(x_339, 0); -lean_inc(x_340); -x_341 = lean_ctor_get(x_339, 1); -lean_inc(x_341); -if (lean_is_exclusive(x_339)) { - lean_ctor_release(x_339, 0); - lean_ctor_release(x_339, 1); - x_342 = x_339; +if (lean_is_exclusive(x_323)) { + lean_ctor_release(x_323, 0); + lean_ctor_release(x_323, 1); + x_339 = x_323; } else { - lean_dec_ref(x_339); - x_342 = lean_box(0); + lean_dec_ref(x_323); + x_339 = lean_box(0); } -if (lean_is_scalar(x_342)) { - x_343 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_339)) { + x_340 = lean_alloc_ctor(1, 2, 0); } else { - x_343 = x_342; + x_340 = x_339; +} +lean_ctor_set(x_340, 0, x_330); +lean_ctor_set(x_340, 1, x_338); +return x_340; } -lean_ctor_set(x_343, 0, x_340); -lean_ctor_set(x_343, 1, x_341); -x_344 = lean_array_push(x_8, x_343); -x_345 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_345, 0, x_344); -lean_ctor_set(x_345, 1, x_338); -return x_345; } else { -lean_object* x_346; -x_346 = lean_ctor_get(x_339, 0); -lean_inc(x_346); -if (lean_obj_tag(x_346) == 0) -{ -lean_object* x_347; -x_347 = lean_ctor_get(x_346, 0); -lean_inc(x_347); -if (lean_obj_tag(x_347) == 0) -{ -lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; -lean_dec(x_346); -x_348 = lean_ctor_get(x_339, 1); -lean_inc(x_348); -if (lean_is_exclusive(x_339)) { - lean_ctor_release(x_339, 0); - lean_ctor_release(x_339, 1); - x_349 = x_339; -} else { - lean_dec_ref(x_339); - x_349 = lean_box(0); -} -x_350 = lean_ctor_get(x_347, 0); -lean_inc(x_350); -lean_dec(x_347); -if (lean_is_scalar(x_349)) { - x_351 = lean_alloc_ctor(1, 2, 0); -} else { - x_351 = x_349; -} -lean_ctor_set(x_351, 0, x_350); -lean_ctor_set(x_351, 1, x_348); -x_352 = lean_array_push(x_8, x_351); -x_353 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_353, 0, x_352); -lean_ctor_set(x_353, 1, x_338); -return x_353; -} -else -{ -lean_object* x_354; lean_object* x_355; lean_object* x_356; -lean_dec(x_338); +lean_object* x_341; lean_object* x_342; lean_dec(x_8); -x_354 = lean_ctor_get(x_339, 1); -lean_inc(x_354); -if (lean_is_exclusive(x_339)) { - lean_ctor_release(x_339, 0); - lean_ctor_release(x_339, 1); - x_355 = x_339; +if (lean_is_exclusive(x_323)) { + lean_ctor_release(x_323, 0); + lean_ctor_release(x_323, 1); + x_341 = x_323; } else { - lean_dec_ref(x_339); - x_355 = lean_box(0); + lean_dec_ref(x_323); + x_341 = lean_box(0); } -if (lean_is_scalar(x_355)) { - x_356 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_341)) { + x_342 = lean_alloc_ctor(1, 2, 0); } else { - x_356 = x_355; + x_342 = x_341; } -lean_ctor_set(x_356, 0, x_346); -lean_ctor_set(x_356, 1, x_354); -return x_356; -} -} -else -{ -lean_object* x_357; lean_object* x_358; -lean_dec(x_8); -if (lean_is_exclusive(x_339)) { - lean_ctor_release(x_339, 0); - lean_ctor_release(x_339, 1); - x_357 = x_339; -} else { - lean_dec_ref(x_339); - x_357 = lean_box(0); -} -if (lean_is_scalar(x_357)) { - x_358 = lean_alloc_ctor(1, 2, 0); -} else { - x_358 = x_357; -} -lean_ctor_set(x_358, 0, x_346); -lean_ctor_set(x_358, 1, x_338); -return x_358; +lean_ctor_set(x_342, 0, x_330); +lean_ctor_set(x_342, 1, x_322); +return x_342; } } } } else { -uint8_t x_359; +uint8_t x_343; lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); @@ -7148,33 +7064,33 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_359 = !lean_is_exclusive(x_308); -if (x_359 == 0) +x_343 = !lean_is_exclusive(x_292); +if (x_343 == 0) { -return x_308; +return x_292; } else { -lean_object* x_360; lean_object* x_361; lean_object* x_362; -x_360 = lean_ctor_get(x_308, 0); -x_361 = lean_ctor_get(x_308, 1); -lean_inc(x_361); -lean_inc(x_360); -lean_dec(x_308); -x_362 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_362, 0, x_360); -lean_ctor_set(x_362, 1, x_361); -return x_362; +lean_object* x_344; lean_object* x_345; lean_object* x_346; +x_344 = lean_ctor_get(x_292, 0); +x_345 = lean_ctor_get(x_292, 1); +lean_inc(x_345); +lean_inc(x_344); +lean_dec(x_292); +x_346 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_346, 0, x_344); +lean_ctor_set(x_346, 1, x_345); +return x_346; } } } else { -uint8_t x_363; +uint8_t x_347; lean_dec(x_2); -x_363 = 1; -x_2 = x_302; -x_7 = x_363; +x_347 = 1; +x_2 = x_286; +x_7 = x_347; goto _start; } } @@ -7182,15 +7098,23 @@ goto _start; } else { -lean_object* x_373; lean_object* x_374; lean_object* x_375; -x_373 = l_Lean_Syntax_getArgs(x_2); -x_374 = lean_unsigned_to_nat(0u); -x_375 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_373, x_374, x_8, x_9, x_10); -lean_dec(x_373); +lean_object* x_357; lean_object* x_358; lean_object* x_359; +x_357 = l_Lean_Syntax_getArgs(x_2); +x_358 = lean_unsigned_to_nat(0u); +x_359 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_TermApp_15__elabAppFn___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_357, x_358, x_8, x_9, x_10); +lean_dec(x_357); lean_dec(x_2); -return x_375; +return x_359; } -block_165: +} +else +{ +lean_object* x_360; lean_object* x_361; +x_360 = lean_box(0); +x_361 = l___private_Init_Lean_Elab_TermApp_14__elabAppFnId(x_1, x_2, x_360, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_361; +} +block_148: { uint8_t x_12; x_12 = l_coeDecidableEq(x_11); @@ -7810,165 +7734,35 @@ return x_131; } else { -if (lean_obj_tag(x_71) == 3) -{ -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; uint8_t x_137; -x_132 = lean_ctor_get(x_71, 2); -lean_inc(x_132); -x_133 = lean_ctor_get(x_71, 3); -lean_inc(x_133); -lean_dec(x_71); -x_134 = lean_unsigned_to_nat(1u); -x_135 = l_Lean_Syntax_getArg(x_2, x_134); -x_136 = l_Lean_Syntax_getArgs(x_135); -lean_dec(x_135); -x_137 = l_Array_isEmpty___rarg(x_136); -if (x_137 == 0) -{ -lean_object* x_138; lean_object* x_139; lean_object* x_140; -x_138 = l_Lean_Syntax_inhabited; -x_139 = lean_array_get(x_138, x_136, x_70); -lean_dec(x_136); -x_140 = l_Lean_Elab_Term_elabExplicitUniv(x_139, x_9, x_10); -lean_dec(x_139); -if (lean_obj_tag(x_140) == 0) -{ -lean_object* x_141; lean_object* x_142; lean_object* x_143; -x_141 = lean_ctor_get(x_140, 0); -lean_inc(x_141); -x_142 = lean_ctor_get(x_140, 1); -lean_inc(x_142); -lean_dec(x_140); -lean_inc(x_9); -x_143 = l_Lean_Elab_Term_resolveName(x_2, x_132, x_133, x_141, x_9, x_142); +lean_object* x_132; lean_object* x_133; lean_object* x_134; uint8_t x_135; +x_132 = lean_unsigned_to_nat(1u); +x_133 = l_Lean_Syntax_getArg(x_2, x_132); lean_dec(x_2); -if (lean_obj_tag(x_143) == 0) -{ -lean_object* x_144; lean_object* x_145; lean_object* x_146; -x_144 = lean_ctor_get(x_143, 0); -lean_inc(x_144); -x_145 = lean_ctor_get(x_143, 1); -lean_inc(x_145); -lean_dec(x_143); -x_146 = l_List_foldlM___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__2(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_144, x_9, x_145); -return x_146; -} -else -{ -uint8_t x_147; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_147 = !lean_is_exclusive(x_143); -if (x_147 == 0) -{ -return x_143; -} -else -{ -lean_object* x_148; lean_object* x_149; lean_object* x_150; -x_148 = lean_ctor_get(x_143, 0); -x_149 = lean_ctor_get(x_143, 1); -lean_inc(x_149); -lean_inc(x_148); -lean_dec(x_143); -x_150 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_150, 0, x_148); -lean_ctor_set(x_150, 1, x_149); -return x_150; -} -} -} -else -{ -uint8_t x_151; +x_134 = l_Lean_Syntax_getArgs(x_133); lean_dec(x_133); -lean_dec(x_132); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_151 = !lean_is_exclusive(x_140); -if (x_151 == 0) +x_135 = l_Array_isEmpty___rarg(x_134); +if (x_135 == 0) { -return x_140; +lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_136 = l_Lean_Syntax_inhabited; +x_137 = lean_array_get(x_136, x_134, x_70); +lean_dec(x_134); +x_138 = l_Lean_Elab_Term_elabExplicitUniv(x_137, x_9, x_10); +lean_dec(x_137); +if (lean_obj_tag(x_138) == 0) +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_139 = lean_ctor_get(x_138, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_138, 1); +lean_inc(x_140); +lean_dec(x_138); +x_141 = l___private_Init_Lean_Elab_TermApp_14__elabAppFnId(x_1, x_71, x_139, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_140); +return x_141; } else { -lean_object* x_152; lean_object* x_153; lean_object* x_154; -x_152 = lean_ctor_get(x_140, 0); -x_153 = lean_ctor_get(x_140, 1); -lean_inc(x_153); -lean_inc(x_152); -lean_dec(x_140); -x_154 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_154, 0, x_152); -lean_ctor_set(x_154, 1, x_153); -return x_154; -} -} -} -else -{ -lean_object* x_155; lean_object* x_156; -lean_dec(x_136); -x_155 = lean_box(0); -lean_inc(x_9); -x_156 = l_Lean_Elab_Term_resolveName(x_2, x_132, x_133, x_155, x_9, x_10); -lean_dec(x_2); -if (lean_obj_tag(x_156) == 0) -{ -lean_object* x_157; lean_object* x_158; lean_object* x_159; -x_157 = lean_ctor_get(x_156, 0); -lean_inc(x_157); -x_158 = lean_ctor_get(x_156, 1); -lean_inc(x_158); -lean_dec(x_156); -x_159 = l_List_foldlM___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__3(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_157, x_9, x_158); -return x_159; -} -else -{ -uint8_t x_160; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_160 = !lean_is_exclusive(x_156); -if (x_160 == 0) -{ -return x_156; -} -else -{ -lean_object* x_161; lean_object* x_162; lean_object* x_163; -x_161 = lean_ctor_get(x_156, 0); -x_162 = lean_ctor_get(x_156, 1); -lean_inc(x_162); -lean_inc(x_161); -lean_dec(x_156); -x_163 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_163, 0, x_161); -lean_ctor_set(x_163, 1, x_162); -return x_163; -} -} -} -} -else -{ -lean_object* x_164; +uint8_t x_142; lean_dec(x_71); lean_dec(x_9); lean_dec(x_8); @@ -7976,77 +7770,81 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); lean_dec(x_1); -x_164 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_10); -return x_164; -} -} -} -} -} -} -lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: +x_142 = !lean_is_exclusive(x_138); +if (x_142 == 0) { -uint8_t x_11; lean_object* x_12; -x_11 = lean_unbox(x_6); -lean_dec(x_6); -x_12 = l_List_foldlM___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_11, x_7, x_8, x_9, x_10); -return x_12; +return x_138; } -} -lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: +else { -uint8_t x_11; lean_object* x_12; -x_11 = lean_unbox(x_6); -lean_dec(x_6); -x_12 = l_List_foldlM___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__3(x_1, x_2, x_3, x_4, x_5, x_11, x_7, x_8, x_9, x_10); -return x_12; +lean_object* x_143; lean_object* x_144; lean_object* x_145; +x_143 = lean_ctor_get(x_138, 0); +x_144 = lean_ctor_get(x_138, 1); +lean_inc(x_144); +lean_inc(x_143); +lean_dec(x_138); +x_145 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_145, 0, x_143); +lean_ctor_set(x_145, 1, x_144); +return x_145; } } -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +} +else +{ +lean_object* x_146; lean_object* x_147; +lean_dec(x_134); +x_146 = lean_box(0); +x_147 = l___private_Init_Lean_Elab_TermApp_14__elabAppFnId(x_1, x_71, x_146, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_147; +} +} +} +} +} +} +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_TermApp_15__elabAppFn___main___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { uint8_t x_13; lean_object* x_14; x_13 = lean_unbox(x_7); lean_dec(x_7); -x_14 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_13, x_8, x_9, x_10, x_11, x_12); +x_14 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_TermApp_15__elabAppFn___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_13, x_8, x_9, x_10, x_11, x_12); lean_dec(x_8); lean_dec(x_2); return x_14; } } -lean_object* l___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Init_Lean_Elab_TermApp_15__elabAppFn___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { uint8_t x_11; lean_object* x_12; x_11 = lean_unbox(x_7); lean_dec(x_7); -x_12 = l___private_Init_Lean_Elab_TermApp_14__elabAppFn___main(x_1, x_2, x_3, x_4, x_5, x_6, x_11, x_8, x_9, x_10); +x_12 = l___private_Init_Lean_Elab_TermApp_15__elabAppFn___main(x_1, x_2, x_3, x_4, x_5, x_6, x_11, x_8, x_9, x_10); return x_12; } } -lean_object* l___private_Init_Lean_Elab_TermApp_14__elabAppFn(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Init_Lean_Elab_TermApp_15__elabAppFn(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l___private_Init_Lean_Elab_TermApp_14__elabAppFn___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l___private_Init_Lean_Elab_TermApp_15__elabAppFn___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_11; } } -lean_object* l___private_Init_Lean_Elab_TermApp_14__elabAppFn___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Init_Lean_Elab_TermApp_15__elabAppFn___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { uint8_t x_11; lean_object* x_12; x_11 = lean_unbox(x_7); lean_dec(x_7); -x_12 = l___private_Init_Lean_Elab_TermApp_14__elabAppFn(x_1, x_2, x_3, x_4, x_5, x_6, x_11, x_8, x_9, x_10); +x_12 = l___private_Init_Lean_Elab_TermApp_15__elabAppFn(x_1, x_2, x_3, x_4, x_5, x_6, x_11, x_8, x_9, x_10); return x_12; } } -lean_object* l_Array_filterAux___main___at___private_Init_Lean_Elab_TermApp_15__getSuccess___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_filterAux___main___at___private_Init_Lean_Elab_TermApp_16__getSuccess___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -8110,16 +7908,16 @@ goto _start; } } } -lean_object* l___private_Init_Lean_Elab_TermApp_15__getSuccess(lean_object* x_1) { +lean_object* l___private_Init_Lean_Elab_TermApp_16__getSuccess(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Array_filterAux___main___at___private_Init_Lean_Elab_TermApp_15__getSuccess___spec__1(x_1, x_2, x_2); +x_3 = l_Array_filterAux___main___at___private_Init_Lean_Elab_TermApp_16__getSuccess___spec__1(x_1, x_2, x_2); return x_3; } } -lean_object* l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_TermApp_16__toMessageData___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_TermApp_17__toMessageData___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -8146,7 +7944,7 @@ return x_11; } } } -lean_object* _init_l___private_Init_Lean_Elab_TermApp_16__toMessageData___closed__1() { +lean_object* _init_l___private_Init_Lean_Elab_TermApp_17__toMessageData___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -8156,17 +7954,17 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_TermApp_16__toMessageData___closed__2() { +lean_object* _init_l___private_Init_Lean_Elab_TermApp_17__toMessageData___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_TermApp_16__toMessageData___closed__1; +x_1 = l___private_Init_Lean_Elab_TermApp_17__toMessageData___closed__1; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Init_Lean_Elab_TermApp_16__toMessageData(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Elab_TermApp_17__toMessageData(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; @@ -8178,7 +7976,7 @@ lean_inc(x_7); lean_dec(x_5); x_8 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_8, 0, x_6); -x_9 = l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_TermApp_16__toMessageData___spec__1(x_8, x_3, x_7); +x_9 = l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_TermApp_17__toMessageData___spec__1(x_8, x_3, x_7); lean_dec(x_8); x_10 = !lean_is_exclusive(x_9); if (x_10 == 0) @@ -8199,7 +7997,7 @@ x_16 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_16, 0, x_15); x_17 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_17, 0, x_16); -x_18 = l___private_Init_Lean_Elab_TermApp_16__toMessageData___closed__2; +x_18 = l___private_Init_Lean_Elab_TermApp_17__toMessageData___closed__2; x_19 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_19, 0, x_17); lean_ctor_set(x_19, 1, x_18); @@ -8260,7 +8058,7 @@ x_36 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_36, 0, x_35); x_37 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_37, 0, x_36); -x_38 = l___private_Init_Lean_Elab_TermApp_16__toMessageData___closed__2; +x_38 = l___private_Init_Lean_Elab_TermApp_17__toMessageData___closed__2; x_39 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_39, 0, x_37); lean_ctor_set(x_39, 1, x_38); @@ -8305,27 +8103,27 @@ return x_51; } } } -lean_object* l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_TermApp_16__toMessageData___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_TermApp_17__toMessageData___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_TermApp_16__toMessageData___spec__1(x_1, x_2, x_3); +x_4 = l_Lean_Elab_getPosition___at___private_Init_Lean_Elab_TermApp_17__toMessageData___spec__1(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l___private_Init_Lean_Elab_TermApp_16__toMessageData___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Elab_TermApp_17__toMessageData___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Init_Lean_Elab_TermApp_16__toMessageData(x_1, x_2, x_3, x_4); +x_5 = l___private_Init_Lean_Elab_TermApp_17__toMessageData(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); return x_5; } } -lean_object* _init_l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermApp_17__mergeFailures___spec__1___closed__1() { +lean_object* _init_l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermApp_18__mergeFailures___spec__1___closed__1() { _start: { lean_object* x_1; @@ -8334,7 +8132,7 @@ lean_closure_set(x_1, 0, lean_box(0)); return x_1; } } -lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermApp_17__mergeFailures___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermApp_18__mergeFailures___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; uint8_t x_7; @@ -8363,7 +8161,7 @@ x_14 = lean_array_fset(x_3, x_2, x_13); if (lean_obj_tag(x_11) == 0) { lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermApp_17__mergeFailures___spec__1___closed__1; +x_15 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermApp_18__mergeFailures___spec__1___closed__1; x_16 = l_unreachable_x21___rarg(x_15); lean_inc(x_4); x_17 = lean_apply_2(x_16, x_4, x_5); @@ -8418,7 +8216,7 @@ else lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; x_29 = lean_ctor_get(x_11, 0); lean_inc(x_29); -x_30 = l___private_Init_Lean_Elab_TermApp_16__toMessageData(x_29, x_1, x_4, x_5); +x_30 = l___private_Init_Lean_Elab_TermApp_17__toMessageData(x_29, x_1, x_4, x_5); x_31 = lean_ctor_get(x_30, 0); lean_inc(x_31); x_32 = lean_ctor_get(x_30, 1); @@ -8438,7 +8236,7 @@ goto _start; } } } -lean_object* _init_l___private_Init_Lean_Elab_TermApp_17__mergeFailures___rarg___closed__1() { +lean_object* _init_l___private_Init_Lean_Elab_TermApp_18__mergeFailures___rarg___closed__1() { _start: { lean_object* x_1; @@ -8446,33 +8244,33 @@ x_1 = lean_mk_string("overloaded, errors "); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_TermApp_17__mergeFailures___rarg___closed__2() { +lean_object* _init_l___private_Init_Lean_Elab_TermApp_18__mergeFailures___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_TermApp_17__mergeFailures___rarg___closed__1; +x_1 = l___private_Init_Lean_Elab_TermApp_18__mergeFailures___rarg___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_TermApp_17__mergeFailures___rarg___closed__3() { +lean_object* _init_l___private_Init_Lean_Elab_TermApp_18__mergeFailures___rarg___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_TermApp_17__mergeFailures___rarg___closed__2; +x_1 = l___private_Init_Lean_Elab_TermApp_18__mergeFailures___rarg___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Init_Lean_Elab_TermApp_17__mergeFailures___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Elab_TermApp_18__mergeFailures___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; x_5 = lean_unsigned_to_nat(0u); lean_inc(x_3); -x_6 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermApp_17__mergeFailures___spec__1(x_2, x_5, x_1, x_3, x_4); +x_6 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermApp_18__mergeFailures___spec__1(x_2, x_5, x_1, x_3, x_4); if (lean_obj_tag(x_6) == 0) { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; @@ -8483,7 +8281,7 @@ lean_inc(x_8); lean_dec(x_6); x_9 = l_Lean_MessageData_ofArray(x_7); lean_dec(x_7); -x_10 = l___private_Init_Lean_Elab_TermApp_17__mergeFailures___rarg___closed__3; +x_10 = l___private_Init_Lean_Elab_TermApp_18__mergeFailures___rarg___closed__3; x_11 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_9); @@ -8515,33 +8313,33 @@ return x_16; } } } -lean_object* l___private_Init_Lean_Elab_TermApp_17__mergeFailures(lean_object* x_1) { +lean_object* l___private_Init_Lean_Elab_TermApp_18__mergeFailures(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_TermApp_17__mergeFailures___rarg___boxed), 4, 0); +x_2 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_TermApp_18__mergeFailures___rarg___boxed), 4, 0); return x_2; } } -lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermApp_17__mergeFailures___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermApp_18__mergeFailures___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermApp_17__mergeFailures___spec__1(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermApp_18__mergeFailures___spec__1(x_1, x_2, x_3, x_4, x_5); lean_dec(x_1); return x_6; } } -lean_object* l___private_Init_Lean_Elab_TermApp_17__mergeFailures___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Elab_TermApp_18__mergeFailures___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Init_Lean_Elab_TermApp_17__mergeFailures___rarg(x_1, x_2, x_3, x_4); +x_5 = l___private_Init_Lean_Elab_TermApp_18__mergeFailures___rarg(x_1, x_2, x_3, x_4); lean_dec(x_2); return x_5; } } -lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermApp_18__elabAppAux___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermApp_19__elabAppAux___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; uint8_t x_6; @@ -8618,7 +8416,7 @@ goto _start; } } } -lean_object* _init_l___private_Init_Lean_Elab_TermApp_18__elabAppAux___closed__1() { +lean_object* _init_l___private_Init_Lean_Elab_TermApp_19__elabAppAux___closed__1() { _start: { lean_object* x_1; @@ -8626,27 +8424,27 @@ x_1 = lean_mk_string("ambiguous, possible interpretations "); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_TermApp_18__elabAppAux___closed__2() { +lean_object* _init_l___private_Init_Lean_Elab_TermApp_19__elabAppAux___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_TermApp_18__elabAppAux___closed__1; +x_1 = l___private_Init_Lean_Elab_TermApp_19__elabAppAux___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_TermApp_18__elabAppAux___closed__3() { +lean_object* _init_l___private_Init_Lean_Elab_TermApp_19__elabAppAux___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_TermApp_18__elabAppAux___closed__2; +x_1 = l___private_Init_Lean_Elab_TermApp_19__elabAppAux___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Init_Lean_Elab_TermApp_18__elabAppAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l___private_Init_Lean_Elab_TermApp_19__elabAppAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; @@ -8655,7 +8453,7 @@ x_9 = 0; x_10 = l_Array_empty___closed__1; lean_inc(x_6); lean_inc(x_2); -x_11 = l___private_Init_Lean_Elab_TermApp_14__elabAppFn___main(x_1, x_2, x_8, x_3, x_4, x_5, x_9, x_10, x_6, x_7); +x_11 = l___private_Init_Lean_Elab_TermApp_15__elabAppFn___main(x_1, x_2, x_8, x_3, x_4, x_5, x_9, x_10, x_6, x_7); if (lean_obj_tag(x_11) == 0) { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; @@ -8673,7 +8471,7 @@ if (x_16 == 0) lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; x_17 = lean_unsigned_to_nat(0u); lean_inc(x_12); -x_18 = l_Array_filterAux___main___at___private_Init_Lean_Elab_TermApp_15__getSuccess___spec__1(x_12, x_17, x_17); +x_18 = l_Array_filterAux___main___at___private_Init_Lean_Elab_TermApp_16__getSuccess___spec__1(x_12, x_17, x_17); x_19 = lean_array_get_size(x_18); x_20 = lean_nat_dec_eq(x_19, x_15); if (x_20 == 0) @@ -8685,7 +8483,7 @@ if (x_21 == 0) { lean_object* x_22; lean_dec(x_18); -x_22 = l___private_Init_Lean_Elab_TermApp_17__mergeFailures___rarg(x_12, x_2, x_6, x_13); +x_22 = l___private_Init_Lean_Elab_TermApp_18__mergeFailures___rarg(x_12, x_2, x_6, x_13); lean_dec(x_2); return x_22; } @@ -8705,10 +8503,10 @@ lean_inc(x_27); x_28 = lean_ctor_get(x_26, 1); lean_inc(x_28); lean_dec(x_26); -x_29 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermApp_18__elabAppAux___spec__1(x_24, x_27, x_17, x_18); +x_29 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermApp_19__elabAppAux___spec__1(x_24, x_27, x_17, x_18); x_30 = l_Lean_MessageData_ofArray(x_29); lean_dec(x_29); -x_31 = l___private_Init_Lean_Elab_TermApp_18__elabAppAux___closed__3; +x_31 = l___private_Init_Lean_Elab_TermApp_19__elabAppAux___closed__3; x_32 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_32, 0, x_31); lean_ctor_set(x_32, 1, x_30); @@ -8772,7 +8570,7 @@ return x_44; } } } -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_TermApp_19__expandApp___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_TermApp_20__expandApp___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; uint8_t x_8; @@ -8964,7 +8762,7 @@ return x_59; } } } -lean_object* l_ReaderT_pure___at___private_Init_Lean_Elab_TermApp_19__expandApp___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_ReaderT_pure___at___private_Init_Lean_Elab_TermApp_20__expandApp___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; @@ -8974,15 +8772,15 @@ lean_ctor_set(x_4, 1, x_3); return x_4; } } -lean_object* l_ReaderT_pure___at___private_Init_Lean_Elab_TermApp_19__expandApp___spec__2(lean_object* x_1) { +lean_object* l_ReaderT_pure___at___private_Init_Lean_Elab_TermApp_20__expandApp___spec__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_ReaderT_pure___at___private_Init_Lean_Elab_TermApp_19__expandApp___spec__2___rarg___boxed), 3, 0); +x_2 = lean_alloc_closure((void*)(l_ReaderT_pure___at___private_Init_Lean_Elab_TermApp_20__expandApp___spec__2___rarg___boxed), 3, 0); return x_2; } } -lean_object* l___private_Init_Lean_Elab_TermApp_19__expandApp(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_Lean_Elab_TermApp_20__expandApp(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; @@ -8993,7 +8791,7 @@ x_7 = l_Lean_Syntax_getArg(x_1, x_6); x_8 = l_Lean_Syntax_getArgs(x_7); lean_dec(x_7); x_9 = l___private_Init_Lean_Meta_Tactic_Apply_7__reorderNonDependentFirst___closed__1; -x_10 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_TermApp_19__expandApp___spec__1(x_1, x_8, x_4, x_9, x_2, x_3); +x_10 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_TermApp_20__expandApp___spec__1(x_1, x_8, x_4, x_9, x_2, x_3); lean_dec(x_8); if (lean_obj_tag(x_10) == 0) { @@ -9051,30 +8849,30 @@ return x_21; } } } -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_TermApp_19__expandApp___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_TermApp_20__expandApp___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; -x_7 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_TermApp_19__expandApp___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_TermApp_20__expandApp___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_2); lean_dec(x_1); return x_7; } } -lean_object* l_ReaderT_pure___at___private_Init_Lean_Elab_TermApp_19__expandApp___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_ReaderT_pure___at___private_Init_Lean_Elab_TermApp_20__expandApp___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_ReaderT_pure___at___private_Init_Lean_Elab_TermApp_19__expandApp___spec__2___rarg(x_1, x_2, x_3); +x_4 = l_ReaderT_pure___at___private_Init_Lean_Elab_TermApp_20__expandApp___spec__2___rarg(x_1, x_2, x_3); lean_dec(x_2); return x_4; } } -lean_object* l___private_Init_Lean_Elab_TermApp_19__expandApp___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_Lean_Elab_TermApp_20__expandApp___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Init_Lean_Elab_TermApp_19__expandApp(x_1, x_2, x_3); +x_4 = l___private_Init_Lean_Elab_TermApp_20__expandApp(x_1, x_2, x_3); lean_dec(x_1); return x_4; } @@ -9084,7 +8882,7 @@ _start: { lean_object* x_5; lean_inc(x_3); -x_5 = l___private_Init_Lean_Elab_TermApp_19__expandApp(x_1, x_3, x_4); +x_5 = l___private_Init_Lean_Elab_TermApp_20__expandApp(x_1, x_3, x_4); if (lean_obj_tag(x_5) == 0) { lean_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; @@ -9103,7 +8901,7 @@ lean_inc(x_10); x_11 = lean_ctor_get(x_7, 1); lean_inc(x_11); lean_dec(x_7); -x_12 = l___private_Init_Lean_Elab_TermApp_18__elabAppAux(x_1, x_9, x_10, x_11, x_2, x_3, x_8); +x_12 = l___private_Init_Lean_Elab_TermApp_19__elabAppAux(x_1, x_9, x_10, x_11, x_2, x_3, x_8); return x_12; } else @@ -9176,7 +8974,7 @@ _start: lean_object* x_5; lean_object* x_6; x_5 = l_Array_empty___closed__1; lean_inc(x_1); -x_6 = l___private_Init_Lean_Elab_TermApp_18__elabAppAux(x_1, x_1, x_5, x_5, x_2, x_3, x_4); +x_6 = l___private_Init_Lean_Elab_TermApp_19__elabAppAux(x_1, x_1, x_5, x_5, x_2, x_3, x_4); return x_6; } } @@ -9405,6 +9203,51 @@ x_5 = l_Lean_Elab_Term_addBuiltinTermElab(x_2, x_3, x_4, x_1); return x_5; } } +lean_object* l_Lean_Elab_Term_elabRawIdent(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Elab_Term_elabAtom(x_1, x_2, x_3, x_4); +return x_5; +} +} +lean_object* _init_l___regBuiltinTermElab_Lean_Elab_Term_elabRawIdent___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("elabRawIdent"); +return x_1; +} +} +lean_object* _init_l___regBuiltinTermElab_Lean_Elab_Term_elabRawIdent___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Term_declareBuiltinTermElab___closed__3; +x_2 = l___regBuiltinTermElab_Lean_Elab_Term_elabRawIdent___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l___regBuiltinTermElab_Lean_Elab_Term_elabRawIdent___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabRawIdent), 4, 0); +return x_1; +} +} +lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabRawIdent(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_2 = l_Lean_identKind___closed__2; +x_3 = l___regBuiltinTermElab_Lean_Elab_Term_elabRawIdent___closed__2; +x_4 = l___regBuiltinTermElab_Lean_Elab_Term_elabRawIdent___closed__3; +x_5 = l_Lean_Elab_Term_addBuiltinTermElab(x_2, x_3, x_4, x_1); +return x_5; +} +} lean_object* l_Lean_Elab_Term_elabSortApp(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -9549,7 +9392,7 @@ x_5 = l_Lean_Elab_Term_addBuiltinTermElab(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* _init_l___private_Init_Lean_Elab_TermApp_20__regTraceClasses___closed__1() { +lean_object* _init_l___private_Init_Lean_Elab_TermApp_21__regTraceClasses___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -9559,11 +9402,11 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l___private_Init_Lean_Elab_TermApp_20__regTraceClasses(lean_object* x_1) { +lean_object* l___private_Init_Lean_Elab_TermApp_21__regTraceClasses(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l___private_Init_Lean_Elab_TermApp_20__regTraceClasses___closed__1; +x_2 = l___private_Init_Lean_Elab_TermApp_21__regTraceClasses___closed__1; x_3 = l_Lean_registerTraceClass(x_2, x_1); if (lean_obj_tag(x_3) == 0) { @@ -9762,24 +9605,24 @@ l___private_Init_Lean_Elab_TermApp_13__elabAppLVals___closed__2 = _init_l___priv lean_mark_persistent(l___private_Init_Lean_Elab_TermApp_13__elabAppLVals___closed__2); l___private_Init_Lean_Elab_TermApp_13__elabAppLVals___closed__3 = _init_l___private_Init_Lean_Elab_TermApp_13__elabAppLVals___closed__3(); lean_mark_persistent(l___private_Init_Lean_Elab_TermApp_13__elabAppLVals___closed__3); -l___private_Init_Lean_Elab_TermApp_16__toMessageData___closed__1 = _init_l___private_Init_Lean_Elab_TermApp_16__toMessageData___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Elab_TermApp_16__toMessageData___closed__1); -l___private_Init_Lean_Elab_TermApp_16__toMessageData___closed__2 = _init_l___private_Init_Lean_Elab_TermApp_16__toMessageData___closed__2(); -lean_mark_persistent(l___private_Init_Lean_Elab_TermApp_16__toMessageData___closed__2); -l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermApp_17__mergeFailures___spec__1___closed__1 = _init_l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermApp_17__mergeFailures___spec__1___closed__1(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermApp_17__mergeFailures___spec__1___closed__1); -l___private_Init_Lean_Elab_TermApp_17__mergeFailures___rarg___closed__1 = _init_l___private_Init_Lean_Elab_TermApp_17__mergeFailures___rarg___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Elab_TermApp_17__mergeFailures___rarg___closed__1); -l___private_Init_Lean_Elab_TermApp_17__mergeFailures___rarg___closed__2 = _init_l___private_Init_Lean_Elab_TermApp_17__mergeFailures___rarg___closed__2(); -lean_mark_persistent(l___private_Init_Lean_Elab_TermApp_17__mergeFailures___rarg___closed__2); -l___private_Init_Lean_Elab_TermApp_17__mergeFailures___rarg___closed__3 = _init_l___private_Init_Lean_Elab_TermApp_17__mergeFailures___rarg___closed__3(); -lean_mark_persistent(l___private_Init_Lean_Elab_TermApp_17__mergeFailures___rarg___closed__3); -l___private_Init_Lean_Elab_TermApp_18__elabAppAux___closed__1 = _init_l___private_Init_Lean_Elab_TermApp_18__elabAppAux___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Elab_TermApp_18__elabAppAux___closed__1); -l___private_Init_Lean_Elab_TermApp_18__elabAppAux___closed__2 = _init_l___private_Init_Lean_Elab_TermApp_18__elabAppAux___closed__2(); -lean_mark_persistent(l___private_Init_Lean_Elab_TermApp_18__elabAppAux___closed__2); -l___private_Init_Lean_Elab_TermApp_18__elabAppAux___closed__3 = _init_l___private_Init_Lean_Elab_TermApp_18__elabAppAux___closed__3(); -lean_mark_persistent(l___private_Init_Lean_Elab_TermApp_18__elabAppAux___closed__3); +l___private_Init_Lean_Elab_TermApp_17__toMessageData___closed__1 = _init_l___private_Init_Lean_Elab_TermApp_17__toMessageData___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elab_TermApp_17__toMessageData___closed__1); +l___private_Init_Lean_Elab_TermApp_17__toMessageData___closed__2 = _init_l___private_Init_Lean_Elab_TermApp_17__toMessageData___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Elab_TermApp_17__toMessageData___closed__2); +l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermApp_18__mergeFailures___spec__1___closed__1 = _init_l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermApp_18__mergeFailures___spec__1___closed__1(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermApp_18__mergeFailures___spec__1___closed__1); +l___private_Init_Lean_Elab_TermApp_18__mergeFailures___rarg___closed__1 = _init_l___private_Init_Lean_Elab_TermApp_18__mergeFailures___rarg___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elab_TermApp_18__mergeFailures___rarg___closed__1); +l___private_Init_Lean_Elab_TermApp_18__mergeFailures___rarg___closed__2 = _init_l___private_Init_Lean_Elab_TermApp_18__mergeFailures___rarg___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Elab_TermApp_18__mergeFailures___rarg___closed__2); +l___private_Init_Lean_Elab_TermApp_18__mergeFailures___rarg___closed__3 = _init_l___private_Init_Lean_Elab_TermApp_18__mergeFailures___rarg___closed__3(); +lean_mark_persistent(l___private_Init_Lean_Elab_TermApp_18__mergeFailures___rarg___closed__3); +l___private_Init_Lean_Elab_TermApp_19__elabAppAux___closed__1 = _init_l___private_Init_Lean_Elab_TermApp_19__elabAppAux___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elab_TermApp_19__elabAppAux___closed__1); +l___private_Init_Lean_Elab_TermApp_19__elabAppAux___closed__2 = _init_l___private_Init_Lean_Elab_TermApp_19__elabAppAux___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Elab_TermApp_19__elabAppAux___closed__2); +l___private_Init_Lean_Elab_TermApp_19__elabAppAux___closed__3 = _init_l___private_Init_Lean_Elab_TermApp_19__elabAppAux___closed__3(); +lean_mark_persistent(l___private_Init_Lean_Elab_TermApp_19__elabAppAux___closed__3); l___regBuiltinTermElab_Lean_Elab_Term_elabApp___closed__1 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabApp___closed__1(); lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabApp___closed__1); l___regBuiltinTermElab_Lean_Elab_Term_elabApp___closed__2 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabApp___closed__2(); @@ -9834,6 +9677,15 @@ lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabArrayRef___closed res = l___regBuiltinTermElab_Lean_Elab_Term_elabArrayRef(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l___regBuiltinTermElab_Lean_Elab_Term_elabRawIdent___closed__1 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabRawIdent___closed__1(); +lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabRawIdent___closed__1); +l___regBuiltinTermElab_Lean_Elab_Term_elabRawIdent___closed__2 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabRawIdent___closed__2(); +lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabRawIdent___closed__2); +l___regBuiltinTermElab_Lean_Elab_Term_elabRawIdent___closed__3 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabRawIdent___closed__3(); +lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabRawIdent___closed__3); +res = l___regBuiltinTermElab_Lean_Elab_Term_elabRawIdent(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l___regBuiltinTermElab_Lean_Elab_Term_elabSortApp___closed__1 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabSortApp___closed__1(); lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabSortApp___closed__1); l___regBuiltinTermElab_Lean_Elab_Term_elabSortApp___closed__2 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabSortApp___closed__2(); @@ -9843,9 +9695,9 @@ lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabSortApp___closed_ res = l___regBuiltinTermElab_Lean_Elab_Term_elabSortApp(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l___private_Init_Lean_Elab_TermApp_20__regTraceClasses___closed__1 = _init_l___private_Init_Lean_Elab_TermApp_20__regTraceClasses___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Elab_TermApp_20__regTraceClasses___closed__1); -res = l___private_Init_Lean_Elab_TermApp_20__regTraceClasses(lean_io_mk_world()); +l___private_Init_Lean_Elab_TermApp_21__regTraceClasses___closed__1 = _init_l___private_Init_Lean_Elab_TermApp_21__regTraceClasses___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elab_TermApp_21__regTraceClasses___closed__1); +res = l___private_Init_Lean_Elab_TermApp_21__regTraceClasses(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_mk_io_result(lean_box(0)); diff --git a/stage0/stdlib/Init/Lean/Elab/TermBinders.c b/stage0/stdlib/Init/Lean/Elab/TermBinders.c index 13fbbc8da0..37ff47193f 100644 --- a/stage0/stdlib/Init/Lean/Elab/TermBinders.c +++ b/stage0/stdlib/Init/Lean/Elab/TermBinders.c @@ -24,17 +24,14 @@ lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabDepArrow___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_TermBinders_5__matchBinder___closed__2; lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermBinders_5__matchBinder___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabDepArrow(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabArrow___closed__1; lean_object* l___private_Init_Lean_Elab_TermBinders_1__expandBinderType___boxed(lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabFun___closed__1; -lean_object* l_Lean_Format_pretty(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__3; extern lean_object* l_Lean_List_format___rarg___closed__2; uint8_t lean_name_eq(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabLet___closed__10; lean_object* l_Lean_Elab_Term_elabLet___closed__7; lean_object* l_Lean_Syntax_getIdAt(lean_object*, lean_object*); lean_object* lean_local_ctx_mk_let_decl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -49,9 +46,9 @@ extern uint8_t l___private_Init_Lean_Elab_Term_4__isCDot___closed__1; extern lean_object* l_Prod_HasRepr___rarg___closed__1; lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermBinders_8__getFunBinderIdsAux_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabLetIdDecl___closed__3; lean_object* l_Lean_Elab_Term_elabLet(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; +lean_object* l_Lean_Elab_Term_elabLetDeclAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermBinders_8__getFunBinderIdsAux_x3f(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermBinders_5__matchBinder___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -96,22 +93,26 @@ lean_object* l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___ma lean_object* l___private_Init_Lean_Elab_TermBinders_12__regTraceClasses(lean_object*); extern lean_object* l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabFun___closed__3; -lean_object* l_Lean_Elab_Term_elabLetIdDecl___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_declareBuiltinTermElab___closed__3; extern lean_object* l_Lean_Expr_getOptParamDefault_x3f___closed__2; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabLetDeclAux___closed__2; +lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabArrow___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabArrow___closed__1; lean_object* l_Lean_Elab_Term_mkFreshFVarId___rarg(lean_object*); -lean_object* l_Lean_Elab_Term_elabLetIdDecl___closed__1; lean_object* l___private_Init_Lean_Elab_TermBinders_8__getFunBinderIdsAux_x3f___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(lean_object*); +lean_object* l_Lean_Elab_Term_elabLetDeclAux___closed__1; lean_object* l___private_Init_Lean_Elab_TermBinders_8__getFunBinderIdsAux_x3f___main(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_instBinder___elambda__1___closed__2; +lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermBinders_6__elabBinderViews(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabForall___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabLetDeclAux___boxed(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*); +extern lean_object* l_Lean_Parser_Term_let__core___elambda__1___closed__7; lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermBinders_5__matchBinder___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__6; lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); @@ -127,7 +128,6 @@ extern lean_object* l_Lean_Parser_Term_explicitBinder___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_elabForall___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_TermBinders_5__matchBinder___closed__1; lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermBinders_5__matchBinder___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__1; lean_object* lean_name_mk_string(lean_object*, lean_object*); @@ -140,32 +140,30 @@ extern lean_object* l_Lean_Parser_Term_fun___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_elabArrow___lambda__1___closed__1; lean_object* l_Lean_Elab_Term_elabBinder___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_TermBinders_5__matchBinder___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabArrow___lambda__1___closed__2; lean_object* l_Lean_Elab_Term_expandOptType(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabArrow___lambda__1___closed__6; -extern lean_object* l_Lean_Options_empty; lean_object* l_Lean_Elab_Term_mkFreshFVarId(lean_object*); lean_object* l_Lean_Elab_Term_elabLet___closed__8; uint8_t l_coeDecidableEq(uint8_t); lean_object* l___private_Init_Lean_Elab_TermBinders_1__expandBinderType(lean_object*); -lean_object* l_Lean_Elab_Term_elabLetIdDecl___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabLetEqnsDecl___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); extern lean_object* l_Lean_Parser_Term_arrow___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_elabArrow___lambda__1___closed__4; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabForall___closed__2; extern lean_object* l_Lean_Parser_Term_let___elambda__1___closed__2; -lean_object* l_Lean_Elab_Term_elabLetIdDecl___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getLocalInsts(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkFreshInstanceName___rarg(lean_object*); lean_object* l_Lean_Elab_Term_isClass(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabArrow___lambda__1___closed__8; lean_object* l_Lean_mkFVar(lean_object*); +lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabLet___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabLet___closed__1; -lean_object* l_Lean_Elab_Term_elabLetIdDecl___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabBinders___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__6; lean_object* l_Lean_Elab_Term_expandOptType___boxed(lean_object*, lean_object*); @@ -182,6 +180,7 @@ extern lean_object* l_Option_HasRepr___rarg___closed__3; lean_object* l___private_Init_Lean_Elab_TermBinders_4__expandBinderModifier___closed__6; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabForall___closed__1; extern lean_object* l_Lean_Parser_Term_implicitBinder___elambda__1___closed__2; +extern lean_object* l_Lean_Syntax_inhabited; lean_object* l_Lean_Elab_Term_elabArrow(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__9; extern lean_object* l_Lean_Parser_Term_matchAlt___elambda__1___closed__2; @@ -206,8 +205,8 @@ extern lean_object* l_Lean_Parser_Term_let___elambda__1___closed__1; lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); lean_object* l_Lean_Elab_Term_elabLetEqnsDecl(lean_object*); -lean_object* l_Lean_Elab_Term_elabLetIdDecl___closed__2; lean_object* l_Lean_Elab_Term_mkFreshFVarId___boxed(lean_object*); +lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Util_1__mkPanicMessage___closed__2; lean_object* l_Lean_Elab_Term_elabLetPatDecl___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkHole___closed__1; @@ -236,15 +235,13 @@ extern lean_object* l_Lean_mkHole___closed__2; lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermBinders_4__expandBinderModifier___closed__3; extern lean_object* l___private_Init_Lean_Elab_Term_5__expandCDot___closed__4; -lean_object* l___private_Init_Lean_Elab_TermBinders_5__matchBinder___closed__3; lean_object* l_Lean_Elab_Term_elabLet___closed__6; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; -extern lean_object* l_Lean_Elab_Term_withNode___rarg___closed__3; lean_object* l_Lean_Elab_Term_elabLet___closed__4; -lean_object* l_Lean_Syntax_formatStxAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabArrow___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabLetDeclAux___closed__3; extern lean_object* l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1; lean_object* l_Lean_Elab_Term_elabForall(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabLet___closed__9; @@ -802,239 +799,182 @@ goto _start; } } } -lean_object* _init_l___private_Init_Lean_Elab_TermBinders_5__matchBinder___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("term elaborator failed, unexpected binder syntax"); -return x_1; -} -} -lean_object* _init_l___private_Init_Lean_Elab_TermBinders_5__matchBinder___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_TermBinders_5__matchBinder___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l___private_Init_Lean_Elab_TermBinders_5__matchBinder___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_TermBinders_5__matchBinder___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} lean_object* l___private_Init_Lean_Elab_TermBinders_5__matchBinder(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; if (lean_obj_tag(x_1) == 1) { -lean_object* x_16; lean_object* x_17; uint8_t x_18; -lean_inc(x_1); -x_16 = l_Lean_Syntax_getKind(x_1); -x_17 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__2; -x_18 = lean_name_eq(x_16, x_17); -if (x_18 == 0) +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get(x_1, 1); +x_6 = l_Lean_Parser_Term_simpleBinder___elambda__1___closed__2; +x_7 = lean_name_eq(x_4, x_6); +if (x_7 == 0) { -lean_object* x_19; uint8_t x_20; -x_19 = l_Lean_Parser_Term_explicitBinder___elambda__1___closed__2; -x_20 = lean_name_eq(x_16, x_19); -if (x_20 == 0) +lean_object* x_8; uint8_t x_9; +x_8 = l_Lean_Parser_Term_explicitBinder___elambda__1___closed__2; +x_9 = lean_name_eq(x_4, x_8); +if (x_9 == 0) { -lean_object* x_21; uint8_t x_22; -x_21 = l_Lean_Parser_Term_implicitBinder___elambda__1___closed__2; -x_22 = lean_name_eq(x_16, x_21); -if (x_22 == 0) +lean_object* x_10; uint8_t x_11; +x_10 = l_Lean_Parser_Term_implicitBinder___elambda__1___closed__2; +x_11 = lean_name_eq(x_4, x_10); +if (x_11 == 0) { -lean_object* x_23; uint8_t x_24; -x_23 = l_Lean_Parser_Term_instBinder___elambda__1___closed__2; -x_24 = lean_name_eq(x_16, x_23); -lean_dec(x_16); -if (x_24 == 0) +lean_object* x_12; uint8_t x_13; +x_12 = l_Lean_Parser_Term_instBinder___elambda__1___closed__2; +x_13 = lean_name_eq(x_4, x_12); +if (x_13 == 0) { -lean_object* x_25; lean_object* x_26; -x_25 = l___private_Init_Lean_Elab_TermBinders_5__matchBinder___closed__3; -x_26 = l_Lean_Elab_Term_throwError___rarg(x_1, x_25, x_2, x_3); -lean_dec(x_1); -return x_26; -} -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; -x_27 = lean_unsigned_to_nat(1u); -x_28 = l_Lean_Syntax_getArg(x_1, x_27); -x_29 = l___private_Init_Lean_Elab_TermBinders_3__expandOptIdent(x_28, x_2, x_3); +lean_object* x_14; lean_dec(x_2); -lean_dec(x_28); -x_30 = !lean_is_exclusive(x_29); -if (x_30 == 0) -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_31 = lean_ctor_get(x_29, 0); -x_32 = lean_unsigned_to_nat(2u); -x_33 = l_Lean_Syntax_getArg(x_1, x_32); -lean_dec(x_1); -x_34 = 3; -x_35 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_35, 0, x_31); -lean_ctor_set(x_35, 1, x_33); -lean_ctor_set_uint8(x_35, sizeof(void*)*2, x_34); -x_36 = l_Lean_mkOptionalNode___closed__2; -x_37 = lean_array_push(x_36, x_35); -lean_ctor_set(x_29, 0, x_37); -return x_29; +x_14 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_3); +return x_14; } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_38 = lean_ctor_get(x_29, 0); -x_39 = lean_ctor_get(x_29, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_29); +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_15 = l_Lean_Syntax_inhabited; +x_16 = lean_unsigned_to_nat(1u); +x_17 = lean_array_get(x_15, x_5, x_16); +x_18 = l___private_Init_Lean_Elab_TermBinders_3__expandOptIdent(x_17, x_2, x_3); +lean_dec(x_2); +lean_dec(x_17); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_20 = lean_ctor_get(x_18, 0); +x_21 = lean_unsigned_to_nat(2u); +x_22 = lean_array_get(x_15, x_5, x_21); +x_23 = 3; +x_24 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_24, 0, x_20); +lean_ctor_set(x_24, 1, x_22); +lean_ctor_set_uint8(x_24, sizeof(void*)*2, x_23); +x_25 = l_Lean_mkOptionalNode___closed__2; +x_26 = lean_array_push(x_25, x_24); +lean_ctor_set(x_18, 0, x_26); +return x_18; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_27 = lean_ctor_get(x_18, 0); +x_28 = lean_ctor_get(x_18, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_18); +x_29 = lean_unsigned_to_nat(2u); +x_30 = lean_array_get(x_15, x_5, x_29); +x_31 = 3; +x_32 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_32, 0, x_27); +lean_ctor_set(x_32, 1, x_30); +lean_ctor_set_uint8(x_32, sizeof(void*)*2, x_31); +x_33 = l_Lean_mkOptionalNode___closed__2; +x_34 = lean_array_push(x_33, x_32); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_28); +return x_35; +} +} +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_36 = l_Lean_Syntax_inhabited; +x_37 = lean_unsigned_to_nat(1u); +x_38 = lean_array_get(x_36, x_5, x_37); +x_39 = l_Lean_Syntax_getArgs(x_38); +lean_dec(x_38); x_40 = lean_unsigned_to_nat(2u); -x_41 = l_Lean_Syntax_getArg(x_1, x_40); -lean_dec(x_1); -x_42 = 3; -x_43 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_43, 0, x_38); -lean_ctor_set(x_43, 1, x_41); -lean_ctor_set_uint8(x_43, sizeof(void*)*2, x_42); -x_44 = l_Lean_mkOptionalNode___closed__2; -x_45 = lean_array_push(x_44, x_43); -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_39); -return x_46; -} +x_41 = lean_array_get(x_36, x_5, x_40); +x_42 = l___private_Init_Lean_Elab_TermBinders_1__expandBinderType(x_41); +lean_dec(x_41); +x_43 = lean_unsigned_to_nat(0u); +x_44 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermBinders_5__matchBinder___spec__1(x_42, x_43, x_39, x_2, x_3); +lean_dec(x_2); +return x_44; } } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -lean_dec(x_16); -x_47 = lean_unsigned_to_nat(1u); -x_48 = l_Lean_Syntax_getArg(x_1, x_47); -x_49 = l_Lean_Syntax_getArgs(x_48); -lean_dec(x_48); -x_50 = lean_unsigned_to_nat(2u); -x_51 = l_Lean_Syntax_getArg(x_1, x_50); -lean_dec(x_1); -x_52 = l___private_Init_Lean_Elab_TermBinders_1__expandBinderType(x_51); -lean_dec(x_51); -x_53 = lean_unsigned_to_nat(0u); -x_54 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermBinders_5__matchBinder___spec__1(x_52, x_53, x_49, x_2, x_3); +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; +x_45 = l_Lean_Syntax_inhabited; +x_46 = lean_unsigned_to_nat(1u); +x_47 = lean_array_get(x_45, x_5, x_46); +x_48 = l_Lean_Syntax_getArgs(x_47); +lean_dec(x_47); +x_49 = lean_unsigned_to_nat(2u); +x_50 = lean_array_get(x_45, x_5, x_49); +x_51 = l___private_Init_Lean_Elab_TermBinders_1__expandBinderType(x_50); +lean_dec(x_50); +x_52 = lean_unsigned_to_nat(3u); +x_53 = lean_array_get(x_45, x_5, x_52); +lean_inc(x_2); +x_54 = l___private_Init_Lean_Elab_TermBinders_4__expandBinderModifier(x_51, x_53, x_2, x_3); +lean_dec(x_53); +if (lean_obj_tag(x_54) == 0) +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_54, 1); +lean_inc(x_56); +lean_dec(x_54); +x_57 = lean_unsigned_to_nat(0u); +x_58 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermBinders_5__matchBinder___spec__2(x_55, x_57, x_48, x_2, x_56); lean_dec(x_2); +return x_58; +} +else +{ +uint8_t x_59; +lean_dec(x_48); +lean_dec(x_2); +x_59 = !lean_is_exclusive(x_54); +if (x_59 == 0) +{ return x_54; } +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_54, 0); +x_61 = lean_ctor_get(x_54, 1); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_54); +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_60); +lean_ctor_set(x_62, 1, x_61); +return x_62; +} +} +} } else { -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_dec(x_16); -x_55 = lean_unsigned_to_nat(1u); -x_56 = l_Lean_Syntax_getArg(x_1, x_55); -x_57 = l_Lean_Syntax_getArgs(x_56); -lean_dec(x_56); -x_58 = lean_unsigned_to_nat(2u); -x_59 = l_Lean_Syntax_getArg(x_1, x_58); -x_60 = l___private_Init_Lean_Elab_TermBinders_1__expandBinderType(x_59); -lean_dec(x_59); -x_61 = lean_unsigned_to_nat(3u); -x_62 = l_Lean_Syntax_getArg(x_1, x_61); -lean_dec(x_1); -lean_inc(x_2); -x_63 = l___private_Init_Lean_Elab_TermBinders_4__expandBinderModifier(x_60, x_62, x_2, x_3); -lean_dec(x_62); -if (lean_obj_tag(x_63) == 0) -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_63, 1); -lean_inc(x_65); -lean_dec(x_63); -x_66 = lean_unsigned_to_nat(0u); -x_67 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermBinders_5__matchBinder___spec__2(x_64, x_66, x_57, x_2, x_65); +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_63 = l_Lean_Syntax_inhabited; +x_64 = lean_unsigned_to_nat(0u); +x_65 = lean_array_get(x_63, x_5, x_64); +x_66 = l_Lean_Syntax_getArgs(x_65); +lean_dec(x_65); +x_67 = l_Lean_mkHole(x_1); +x_68 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermBinders_5__matchBinder___spec__3(x_67, x_64, x_66, x_2, x_3); lean_dec(x_2); -return x_67; +return x_68; +} } else { -uint8_t x_68; -lean_dec(x_57); +lean_object* x_69; lean_dec(x_2); -x_68 = !lean_is_exclusive(x_63); -if (x_68 == 0) -{ -return x_63; -} -else -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_63, 0); -x_70 = lean_ctor_get(x_63, 1); -lean_inc(x_70); -lean_inc(x_69); -lean_dec(x_63); -x_71 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_71, 0, x_69); -lean_ctor_set(x_71, 1, x_70); -return x_71; -} -} -} -} -else -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -lean_dec(x_16); -x_72 = lean_unsigned_to_nat(0u); -x_73 = l_Lean_Syntax_getArg(x_1, x_72); -x_74 = l_Lean_Syntax_getArgs(x_73); -lean_dec(x_73); -x_75 = l_Lean_mkHole(x_1); -lean_dec(x_1); -x_76 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermBinders_5__matchBinder___spec__3(x_75, x_72, x_74, x_2, x_3); -lean_dec(x_2); -return x_76; -} -} -else -{ -lean_object* x_77; -x_77 = lean_box(0); -x_4 = x_77; -goto block_15; -} -block_15: -{ -lean_object* x_5; lean_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_dec(x_4); -x_5 = lean_box(0); -x_6 = lean_unsigned_to_nat(0u); -lean_inc(x_1); -x_7 = l_Lean_Syntax_formatStxAux___main(x_5, x_6, x_1); -x_8 = l_Lean_Options_empty; -x_9 = l_Lean_Format_pretty(x_7, x_8); -x_10 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_10, 0, x_9); -x_11 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_11, 0, x_10); -x_12 = l_Lean_Elab_Term_withNode___rarg___closed__3; -x_13 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_11); -x_14 = l_Lean_Elab_Term_throwError___rarg(x_1, x_13, x_2, x_3); -lean_dec(x_1); -return x_14; +x_69 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_3); +return x_69; } } } @@ -1065,6 +1005,15 @@ lean_dec(x_4); return x_6; } } +lean_object* l___private_Init_Lean_Elab_TermBinders_5__matchBinder___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l___private_Init_Lean_Elab_TermBinders_5__matchBinder(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} lean_object* l_Lean_Elab_Term_mkFreshFVarId___rarg(lean_object* x_1) { _start: { @@ -1906,6 +1855,7 @@ lean_object* x_13; lean_object* x_14; x_13 = lean_array_fget(x_1, x_2); lean_inc(x_6); x_14 = l___private_Init_Lean_Elab_TermBinders_5__matchBinder(x_13, x_6, x_7); +lean_dec(x_13); if (lean_obj_tag(x_14) == 0) { lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; @@ -17576,7 +17526,7 @@ lean_dec(x_1); return x_3; } } -lean_object* l_Lean_Elab_Term_elabLetIdDecl___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* l_Lean_Elab_Term_elabLetDeclAux___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; @@ -17750,7 +17700,7 @@ return x_41; } } } -lean_object* l_Lean_Elab_Term_elabLetIdDecl___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* l_Lean_Elab_Term_elabLetDeclAux___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { uint8_t x_7; lean_object* x_8; @@ -17801,7 +17751,7 @@ return x_18; } } } -lean_object* _init_l_Lean_Elab_Term_elabLetIdDecl___closed__1() { +lean_object* _init_l_Lean_Elab_Term_elabLetDeclAux___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -17811,7 +17761,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l_Lean_Elab_Term_elabLetIdDecl___closed__2() { +lean_object* _init_l_Lean_Elab_Term_elabLetDeclAux___closed__2() { _start: { lean_object* x_1; @@ -17819,20 +17769,161 @@ x_1 = lean_mk_string("decl"); return x_1; } } -lean_object* _init_l_Lean_Elab_Term_elabLetIdDecl___closed__3() { +lean_object* _init_l_Lean_Elab_Term_elabLetDeclAux___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_elabLetIdDecl___closed__1; -x_2 = l_Lean_Elab_Term_elabLetIdDecl___closed__2; +x_1 = l_Lean_Elab_Term_elabLetDeclAux___closed__1; +x_2 = l_Lean_Elab_Term_elabLetDeclAux___closed__2; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } +lean_object* l_Lean_Elab_Term_elabLetDeclAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; +lean_inc(x_1); +x_10 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabLetDeclAux___lambda__1___boxed), 6, 3); +lean_closure_set(x_10, 0, x_4); +lean_closure_set(x_10, 1, x_5); +lean_closure_set(x_10, 2, x_1); +lean_inc(x_8); +x_11 = l_Lean_Elab_Term_elabBinders___rarg(x_3, x_10, x_8, x_9); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_ctor_get(x_12, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); +lean_dec(x_12); +x_16 = l_Lean_Elab_Term_getOptions(x_8, x_13); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = l_Lean_Elab_Term_elabLetDeclAux___closed__3; +x_20 = l_Lean_checkTraceOption(x_17, x_19); +lean_dec(x_17); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +lean_inc(x_1); +x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabLetDeclAux___lambda__2___boxed), 6, 3); +lean_closure_set(x_21, 0, x_7); +lean_closure_set(x_21, 1, x_6); +lean_closure_set(x_21, 2, x_1); +x_22 = l_Lean_Elab_Term_withLetDecl___rarg(x_1, x_2, x_14, x_15, x_21, x_8, x_18); +lean_dec(x_1); +return x_22; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +lean_inc(x_2); +x_23 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_23, 0, x_2); +x_24 = l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__5; +x_25 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +lean_inc(x_14); +x_26 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_26, 0, x_14); +x_27 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +x_28 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__5; +x_29 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +lean_inc(x_15); +x_30 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_30, 0, x_15); +x_31 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +x_32 = l_Lean_Elab_Term_logTrace(x_19, x_1, x_31, x_8, x_18); +x_33 = lean_ctor_get(x_32, 1); +lean_inc(x_33); +lean_dec(x_32); +lean_inc(x_1); +x_34 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabLetDeclAux___lambda__2___boxed), 6, 3); +lean_closure_set(x_34, 0, x_7); +lean_closure_set(x_34, 1, x_6); +lean_closure_set(x_34, 2, x_1); +x_35 = l_Lean_Elab_Term_withLetDecl___rarg(x_1, x_2, x_14, x_15, x_34, x_8, x_33); +lean_dec(x_1); +return x_35; +} +} +else +{ +uint8_t x_36; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_36 = !lean_is_exclusive(x_11); +if (x_36 == 0) +{ +return x_11; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_11, 0); +x_38 = lean_ctor_get(x_11, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_11); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +return x_39; +} +} +} +} +lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Elab_Term_elabLetDeclAux___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_3); +return x_7; +} +} +lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Elab_Term_elabLetDeclAux___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_3); +return x_7; +} +} +lean_object* l_Lean_Elab_Term_elabLetDeclAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Elab_Term_elabLetDeclAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_3); +return x_10; +} +} lean_object* l_Lean_Elab_Term_elabLetIdDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; x_7 = lean_unsigned_to_nat(0u); x_8 = l_Lean_Syntax_getIdAt(x_2, x_7); x_9 = lean_unsigned_to_nat(1u); @@ -17845,133 +17936,9 @@ x_14 = l_Lean_Elab_Term_expandOptType(x_1, x_13); lean_dec(x_13); x_15 = lean_unsigned_to_nat(4u); x_16 = l_Lean_Syntax_getArg(x_2, x_15); -lean_inc(x_1); -x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabLetIdDecl___lambda__1___boxed), 6, 3); -lean_closure_set(x_17, 0, x_14); -lean_closure_set(x_17, 1, x_16); -lean_closure_set(x_17, 2, x_1); -lean_inc(x_5); -x_18 = l_Lean_Elab_Term_elabBinders___rarg(x_11, x_17, x_5, x_6); +x_17 = l_Lean_Elab_Term_elabLetDeclAux(x_1, x_8, x_11, x_14, x_16, x_3, x_4, x_5, x_6); lean_dec(x_11); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -lean_dec(x_18); -x_21 = lean_ctor_get(x_19, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_19, 1); -lean_inc(x_22); -lean_dec(x_19); -x_23 = l_Lean_Elab_Term_getOptions(x_5, x_20); -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -x_25 = lean_ctor_get(x_23, 1); -lean_inc(x_25); -lean_dec(x_23); -x_26 = l_Lean_Elab_Term_elabLetIdDecl___closed__3; -x_27 = l_Lean_checkTraceOption(x_24, x_26); -lean_dec(x_24); -if (x_27 == 0) -{ -lean_object* x_28; lean_object* x_29; -lean_inc(x_1); -x_28 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabLetIdDecl___lambda__2___boxed), 6, 3); -lean_closure_set(x_28, 0, x_4); -lean_closure_set(x_28, 1, x_3); -lean_closure_set(x_28, 2, x_1); -x_29 = l_Lean_Elab_Term_withLetDecl___rarg(x_1, x_8, x_21, x_22, x_28, x_5, x_25); -lean_dec(x_1); -return x_29; -} -else -{ -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_inc(x_8); -x_30 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_30, 0, x_8); -x_31 = l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__5; -x_32 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_32, 0, x_30); -lean_ctor_set(x_32, 1, x_31); -lean_inc(x_21); -x_33 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_33, 0, x_21); -x_34 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -x_35 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__5; -x_36 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_36, 0, x_34); -lean_ctor_set(x_36, 1, x_35); -lean_inc(x_22); -x_37 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_37, 0, x_22); -x_38 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); -x_39 = l_Lean_Elab_Term_logTrace(x_26, x_1, x_38, x_5, x_25); -x_40 = lean_ctor_get(x_39, 1); -lean_inc(x_40); -lean_dec(x_39); -lean_inc(x_1); -x_41 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabLetIdDecl___lambda__2___boxed), 6, 3); -lean_closure_set(x_41, 0, x_4); -lean_closure_set(x_41, 1, x_3); -lean_closure_set(x_41, 2, x_1); -x_42 = l_Lean_Elab_Term_withLetDecl___rarg(x_1, x_8, x_21, x_22, x_41, x_5, x_40); -lean_dec(x_1); -return x_42; -} -} -else -{ -uint8_t x_43; -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_43 = !lean_is_exclusive(x_18); -if (x_43 == 0) -{ -return x_18; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_18, 0); -x_45 = lean_ctor_get(x_18, 1); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_18); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -return x_46; -} -} -} -} -lean_object* l_Lean_Elab_Term_elabLetIdDecl___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; -x_7 = l_Lean_Elab_Term_elabLetIdDecl___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_3); -return x_7; -} -} -lean_object* l_Lean_Elab_Term_elabLetIdDecl___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; -x_7 = l_Lean_Elab_Term_elabLetIdDecl___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_3); -return x_7; +return x_17; } } lean_object* l_Lean_Elab_Term_elabLetIdDecl___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { @@ -18122,24 +18089,16 @@ return x_3; lean_object* _init_l_Lean_Elab_Term_elabLet___closed__7() { _start: { -lean_object* x_1; -x_1 = lean_mk_string(":="); -return x_1; -} -} -lean_object* _init_l_Lean_Elab_Term_elabLet___closed__8() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_elabLet___closed__7; +x_2 = l_Lean_Parser_Term_let__core___elambda__1___closed__7; x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l_Lean_Elab_Term_elabLet___closed__9() { +lean_object* _init_l_Lean_Elab_Term_elabLet___closed__8() { _start: { lean_object* x_1; @@ -18147,12 +18106,12 @@ x_1 = lean_mk_string(";"); return x_1; } } -lean_object* _init_l_Lean_Elab_Term_elabLet___closed__10() { +lean_object* _init_l_Lean_Elab_Term_elabLet___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_elabLet___closed__9; +x_2 = l_Lean_Elab_Term_elabLet___closed__8; x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -18539,7 +18498,7 @@ x_86 = lean_array_push(x_85, x_80); x_87 = l_Lean_Elab_Term_elabLet___closed__6; x_88 = lean_array_push(x_86, x_87); x_89 = lean_array_push(x_88, x_87); -x_90 = l_Lean_Elab_Term_elabLet___closed__8; +x_90 = l_Lean_Elab_Term_elabLet___closed__7; x_91 = lean_array_push(x_89, x_90); x_92 = lean_array_push(x_91, x_78); x_93 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; @@ -18548,7 +18507,7 @@ lean_ctor_set(x_94, 0, x_93); lean_ctor_set(x_94, 1, x_92); x_95 = l_Lean_Elab_Term_elabLet___closed__5; x_96 = lean_array_push(x_95, x_94); -x_97 = l_Lean_Elab_Term_elabLet___closed__10; +x_97 = l_Lean_Elab_Term_elabLet___closed__9; x_98 = lean_array_push(x_96, x_97); x_99 = lean_array_push(x_98, x_79); x_100 = l_Lean_Parser_Term_let___elambda__1___closed__2; @@ -18608,7 +18567,7 @@ lean_object* l___private_Init_Lean_Elab_TermBinders_12__regTraceClasses(lean_obj _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Elab_Term_elabLetIdDecl___closed__1; +x_2 = l_Lean_Elab_Term_elabLetDeclAux___closed__1; x_3 = l_Lean_registerTraceClass(x_2, x_1); if (lean_obj_tag(x_3) == 0) { @@ -18683,12 +18642,6 @@ l___private_Init_Lean_Elab_TermBinders_4__expandBinderModifier___closed__6 = _in lean_mark_persistent(l___private_Init_Lean_Elab_TermBinders_4__expandBinderModifier___closed__6); l___private_Init_Lean_Elab_TermBinders_4__expandBinderModifier___closed__7 = _init_l___private_Init_Lean_Elab_TermBinders_4__expandBinderModifier___closed__7(); lean_mark_persistent(l___private_Init_Lean_Elab_TermBinders_4__expandBinderModifier___closed__7); -l___private_Init_Lean_Elab_TermBinders_5__matchBinder___closed__1 = _init_l___private_Init_Lean_Elab_TermBinders_5__matchBinder___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Elab_TermBinders_5__matchBinder___closed__1); -l___private_Init_Lean_Elab_TermBinders_5__matchBinder___closed__2 = _init_l___private_Init_Lean_Elab_TermBinders_5__matchBinder___closed__2(); -lean_mark_persistent(l___private_Init_Lean_Elab_TermBinders_5__matchBinder___closed__2); -l___private_Init_Lean_Elab_TermBinders_5__matchBinder___closed__3 = _init_l___private_Init_Lean_Elab_TermBinders_5__matchBinder___closed__3(); -lean_mark_persistent(l___private_Init_Lean_Elab_TermBinders_5__matchBinder___closed__3); l___regBuiltinTermElab_Lean_Elab_Term_elabForall___closed__1 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabForall___closed__1(); lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabForall___closed__1); l___regBuiltinTermElab_Lean_Elab_Term_elabForall___closed__2 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabForall___closed__2(); @@ -18761,12 +18714,12 @@ lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabFun___closed__3); res = l___regBuiltinTermElab_Lean_Elab_Term_elabFun(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Elab_Term_elabLetIdDecl___closed__1 = _init_l_Lean_Elab_Term_elabLetIdDecl___closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_elabLetIdDecl___closed__1); -l_Lean_Elab_Term_elabLetIdDecl___closed__2 = _init_l_Lean_Elab_Term_elabLetIdDecl___closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_elabLetIdDecl___closed__2); -l_Lean_Elab_Term_elabLetIdDecl___closed__3 = _init_l_Lean_Elab_Term_elabLetIdDecl___closed__3(); -lean_mark_persistent(l_Lean_Elab_Term_elabLetIdDecl___closed__3); +l_Lean_Elab_Term_elabLetDeclAux___closed__1 = _init_l_Lean_Elab_Term_elabLetDeclAux___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_elabLetDeclAux___closed__1); +l_Lean_Elab_Term_elabLetDeclAux___closed__2 = _init_l_Lean_Elab_Term_elabLetDeclAux___closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_elabLetDeclAux___closed__2); +l_Lean_Elab_Term_elabLetDeclAux___closed__3 = _init_l_Lean_Elab_Term_elabLetDeclAux___closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_elabLetDeclAux___closed__3); l_Lean_Elab_Term_elabLet___closed__1 = _init_l_Lean_Elab_Term_elabLet___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_elabLet___closed__1); l_Lean_Elab_Term_elabLet___closed__2 = _init_l_Lean_Elab_Term_elabLet___closed__2(); @@ -18785,8 +18738,6 @@ l_Lean_Elab_Term_elabLet___closed__8 = _init_l_Lean_Elab_Term_elabLet___closed__ lean_mark_persistent(l_Lean_Elab_Term_elabLet___closed__8); l_Lean_Elab_Term_elabLet___closed__9 = _init_l_Lean_Elab_Term_elabLet___closed__9(); lean_mark_persistent(l_Lean_Elab_Term_elabLet___closed__9); -l_Lean_Elab_Term_elabLet___closed__10 = _init_l_Lean_Elab_Term_elabLet___closed__10(); -lean_mark_persistent(l_Lean_Elab_Term_elabLet___closed__10); l___regBuiltinTermElab_Lean_Elab_Term_elabLet___closed__1 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabLet___closed__1(); lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabLet___closed__1); l___regBuiltinTermElab_Lean_Elab_Term_elabLet___closed__2 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabLet___closed__2(); diff --git a/stage0/stdlib/Init/Lean/Parser/Term.c b/stage0/stdlib/Init/Lean/Parser/Term.c index 448e22dacf..f2ea5d4397 100644 --- a/stage0/stdlib/Init/Lean/Parser/Term.c +++ b/stage0/stdlib/Init/Lean/Parser/Term.c @@ -141,6 +141,7 @@ lean_object* l_Lean_Parser_unicodeSymbolCheckPrecFnAux(lean_object*, lean_object lean_object* l_Lean_Parser_Term_explicit___closed__1; lean_object* l_Lean_Parser_Term_str___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_andthen___closed__3; +lean_object* l_Lean_Parser_Term_let__core; lean_object* l_Lean_Parser_Term_not___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_checkIsSort___elambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_have___elambda__1___closed__10; @@ -185,6 +186,7 @@ lean_object* l_Lean_Parser_Term_have___closed__2; lean_object* l_Lean_Parser_Term_implicitBinder___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_do___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_tparser_x21___elambda__1___closed__4; +lean_object* l_Lean_Parser_Term_let__core___elambda__1___closed__10; lean_object* l___regBuiltinParser_Lean_Parser_Term_lt(lean_object*); lean_object* l_Lean_Parser_Term_explicitUniv; extern lean_object* l_Int_repr___closed__1; @@ -211,6 +213,7 @@ lean_object* l_Lean_Parser_Term_if___closed__10; extern lean_object* l___private_Init_Lean_Parser_Parser_14__antiquotNestedExpr___closed__3; lean_object* l_Lean_Parser_Term_namedPattern___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_leftArrow___elambda__1___rarg___closed__5; +lean_object* l___regBuiltinParser_Lean_Parser_Term_let__core(lean_object*); lean_object* l_Lean_Parser_Term_prop; lean_object* l_Lean_Parser_Term_seqLeft___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_hole___elambda__1(lean_object*, lean_object*, lean_object*); @@ -280,6 +283,7 @@ lean_object* l_Lean_Parser_Term_arrow___closed__1; lean_object* l_Lean_Parser_Term_forall___closed__3; extern lean_object* l_Lean_fieldIdxKind___closed__1; lean_object* l_Lean_Parser_Term_subtype___closed__1; +lean_object* l_Lean_Parser_Term_let__core___closed__6; lean_object* l_Lean_Parser_Term_anonymousCtor___closed__4; lean_object* l_Lean_Parser_Term_or___closed__2; lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__6; @@ -461,6 +465,7 @@ extern lean_object* l_Lean_mkTermIdFromIdent___closed__1; lean_object* l_Lean_Parser_Term_explicitUniv___closed__10; lean_object* l_Lean_Parser_Term_do___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_where___closed__6; +lean_object* l_Lean_Parser_Term_let__core___closed__1; lean_object* l_Lean_Parser_Term_anonymousCtor___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_tparser_x21___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_explicitUniv___elambda__1___closed__14; @@ -509,6 +514,7 @@ lean_object* l_Lean_Parser_Term_bracketedDoSeq___closed__3; extern lean_object* l_Lean_Parser_unicodeSymbolCheckPrecFn___closed__2; lean_object* l_Lean_Parser_Term_doPat___closed__6; lean_object* l_Lean_Parser_Term_sorry___closed__4; +lean_object* l_Lean_Parser_Term_let__core___elambda__1___closed__15; lean_object* l_Lean_Parser_Term_subtype___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_where___closed__4; lean_object* l_Lean_Parser_Term_prod___elambda__1___closed__2; @@ -546,6 +552,8 @@ lean_object* l_Lean_Parser_Term_simpleBinder___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_mul___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_prop___elambda__1___closed__9; extern lean_object* l_Lean_Parser_unicodeSymbolFn___rarg___closed__1; +lean_object* l_Lean_Parser_Term_let__core___elambda__1___closed__14; +lean_object* l_Lean_Parser_Term_let__core___closed__10; lean_object* l_Lean_Parser_Term_str___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_listLit___closed__6; lean_object* l_Lean_Parser_Term_proj___elambda__1___closed__2; @@ -564,9 +572,11 @@ lean_object* l_Lean_Parser_Term_doElem___closed__3; lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_match__syntax___elambda__1___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_if___closed__3; lean_object* l_Lean_Parser_Term_suffices___closed__4; +lean_object* l_Lean_Parser_Term_let__core___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_fromTerm___elambda__1___closed__9; extern lean_object* l_Lean_Parser_unicodeSymbolCheckPrecFn___closed__1; lean_object* l_Lean_Parser_Term_let___closed__2; +lean_object* l_Lean_Parser_Term_let__core___elambda__1___closed__5; lean_object* l___regBuiltinParser_Lean_Parser_Term_app(lean_object*); lean_object* l_Lean_Parser_Term_structInst___closed__9; lean_object* l_Lean_Parser_Term_dollarProj___elambda__1___closed__2; @@ -687,6 +697,7 @@ lean_object* l_Lean_Parser_Term_let___closed__4; lean_object* l_Lean_Parser_Term_nomatch___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_explicitUniv___elambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_ge___elambda__1___closed__5; +lean_object* l_Lean_Parser_Term_let__core___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_have___closed__11; lean_object* l_Lean_Parser_Term_doSeq___closed__1; lean_object* l_Lean_Parser_Term_or___elambda__1___closed__1; @@ -748,6 +759,7 @@ lean_object* l_Lean_Parser_Term_binderIdent___closed__3; lean_object* l_Lean_Parser_Term_band___elambda__1___closed__1; lean_object* l_Array_shrink___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_tparser_x21___elambda__1___closed__2; +lean_object* l_Lean_Parser_Term_let__core___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_quotedName___elambda__1___closed__2; extern lean_object* l_Lean_getBuiltinSearchPath___closed__1; lean_object* l_Lean_Parser_Term_haveAssign___elambda__1___closed__3; @@ -779,6 +791,7 @@ lean_object* l_Lean_Parser_Term_arrayRef; lean_object* l_Lean_Parser_Term_cdot; lean_object* l_Lean_Parser_Term_structInstSource___closed__4; lean_object* l_Lean_Parser_Term_typeAscription___elambda__1___closed__3; +lean_object* l_Lean_Parser_Term_let__core___closed__7; lean_object* l_Lean_Parser_Term_quotedName___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_orM___closed__1; lean_object* l_Lean_Parser_Term_sub___elambda__1___closed__1; @@ -810,6 +823,7 @@ lean_object* l_Lean_Parser_Term_doSeq; lean_object* l_Lean_Parser_Term_let___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_if___closed__8; lean_object* l_Lean_Parser_Term_doElem; +lean_object* l_Lean_Parser_Term_let__core___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_where___closed__8; lean_object* l_Lean_Parser_Term_do___closed__6; lean_object* l_Lean_Parser_Term_if___elambda__1___closed__6; @@ -857,6 +871,7 @@ lean_object* l_Lean_Parser_Term_explicitBinder___closed__5; lean_object* l_Lean_Parser_Term_implicitBinder___elambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_bnot___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_namedPattern___elambda__1___closed__9; +lean_object* l_Lean_Parser_Term_let__core___closed__5; lean_object* l_Lean_Parser_Term_orM; lean_object* l_Lean_Parser_Term_tparser_x21___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_heq; @@ -955,6 +970,7 @@ lean_object* l_Lean_Parser_Term_structInstSource___closed__3; lean_object* l___regBuiltinParser_Lean_Parser_Term_seq(lean_object*); lean_object* l_Lean_Parser_Term_equation; lean_object* l_Lean_Parser_Term_sub___elambda__1___closed__3; +lean_object* l_Lean_Parser_Term_let__core___closed__3; lean_object* l_Lean_Parser_Term_bindOp___closed__2; lean_object* l_Lean_Parser_Term_uminus___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_uminus___closed__5; @@ -1013,6 +1029,7 @@ lean_object* l_Lean_Parser_Term_match__syntax___elambda__1___closed__1; extern lean_object* l_Lean_mkAppStx___closed__6; lean_object* l_Lean_Parser_Term_typeAscription___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_letPatDecl___closed__7; +lean_object* l_Lean_Parser_Term_let__core___elambda__1___closed__13; lean_object* l_Lean_Parser_Term_explicitBinder___boxed(lean_object*); lean_object* l_Lean_Parser_Term_do___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_and___elambda__1___closed__5; @@ -1155,6 +1172,7 @@ lean_object* l_Lean_Parser_Term_typeAscription___closed__3; lean_object* l_Lean_Parser_Term_have___closed__10; lean_object* l_Lean_Parser_Term_arrayRef___closed__6; lean_object* l_Lean_Parser_Term_depArrow___elambda__1___closed__15; +lean_object* l_Lean_Parser_Term_let__core___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_borrowed___closed__7; lean_object* l_Lean_Parser_Term_doLet___closed__5; lean_object* l___regBuiltinParser_Lean_Parser_Term_prod(lean_object*); @@ -1167,6 +1185,7 @@ lean_object* l_Lean_Parser_Term_fun___closed__8; lean_object* l_Lean_Parser_Term_explicitUniv___elambda__1___closed__9; lean_object* l___regBuiltinParser_Lean_Parser_Term_fun(lean_object*); lean_object* l_Lean_Parser_Term_haveAssign___elambda__1___closed__1; +lean_object* l_Lean_Parser_Term_let__core___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_bracktedBinder___boxed(lean_object*); lean_object* l_Lean_Parser_Term_not___elambda__1___closed__9; lean_object* l_Lean_Parser_Term_doElem___elambda__1(lean_object*, lean_object*, lean_object*); @@ -1218,6 +1237,7 @@ lean_object* l_Lean_Parser_Term_if___elambda__1(lean_object*, lean_object*, lean lean_object* l_Lean_Parser_Term_prop___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_explicitBinder___closed__6; lean_object* l_Lean_Parser_Term_fun___elambda__1___closed__7; +lean_object* l_Lean_Parser_Term_let__core___elambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_sepBy1Info(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_borrowed___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_typeAscription___closed__7; @@ -1284,6 +1304,7 @@ lean_object* l_Lean_Parser_Term_uminus___closed__2; lean_object* l_Lean_Parser_Term_str___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_explicit___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_fromTerm___closed__4; +lean_object* l_Lean_Parser_Term_let__core___elambda__1___closed__12; lean_object* l_Lean_Parser_Term_matchAlt___closed__9; lean_object* l_Lean_Parser_Term_arrayLit; lean_object* l_Lean_Parser_Term_mul___closed__2; @@ -1335,6 +1356,7 @@ lean_object* l_Lean_Parser_Term_letPatDecl___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_do___closed__7; lean_object* l_Lean_Parser_Term_match___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_append___elambda__1___closed__3; +lean_object* l_Lean_Parser_Term_let__core___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_le___closed__1; lean_object* l_Lean_Parser_Term_sorry; lean_object* l_Lean_Parser_Term_tparser_x21___closed__3; @@ -1560,12 +1582,14 @@ lean_object* l_Lean_Parser_Term_parser_x21___closed__2; lean_object* l_Lean_Parser_Term_emptyC___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_typeSpec___closed__4; lean_object* l_Lean_Parser_Term_mapRev___elambda__1___closed__1; +lean_object* l_Lean_Parser_Term_let__core___closed__2; lean_object* l_Lean_Parser_Term_app___closed__6; lean_object* l_Lean_Parser_Term_leftArrow___elambda__1___rarg___closed__1; lean_object* l_Lean_Parser_Term_dollarProj___closed__6; lean_object* l_Lean_Parser_Term_hole; lean_object* l_Lean_Parser_Term_app___closed__1; lean_object* l_Lean_Parser_Term_emptyC___closed__5; +lean_object* l_Lean_Parser_Term_let__core___elambda__1___closed__11; lean_object* l_Lean_Parser_Term_if___closed__4; lean_object* l_Lean_Parser_Term_forall___elambda__1___closed__3; extern lean_object* l___private_Init_Lean_Parser_Parser_14__antiquotNestedExpr___closed__6; @@ -1610,6 +1634,7 @@ lean_object* l_Lean_Parser_Term_haveAssign___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_doLet___closed__4; lean_object* l_Lean_Parser_Term_tparser_x21___closed__1; lean_object* l_Lean_Parser_Term_match__syntax___elambda__1___closed__3; +lean_object* l_Lean_Parser_Term_let__core___closed__9; lean_object* l_Lean_Parser_Term_implicitBinder___closed__2; lean_object* l_Lean_Parser_Term_explicitBinder___closed__4; lean_object* l_Lean_Parser_Term_andM___closed__3; @@ -1640,6 +1665,7 @@ lean_object* l_Lean_Parser_Term_doLet___closed__2; extern lean_object* l_Lean_mkHole___closed__2; lean_object* l_Lean_Parser_Term_type___closed__5; lean_object* l_Lean_Parser_darrow___elambda__1___rarg___closed__1; +lean_object* l_Lean_Parser_Term_let__core___closed__8; lean_object* l_Lean_Parser_Term_match___elambda__1___closed__10; lean_object* l_Lean_Parser_Term_unicodeInfixR___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_darrow___elambda__1___rarg___closed__2; @@ -1668,6 +1694,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Term_listLit(lean_object*); lean_object* l_Lean_Parser_Term_type___elambda__1___closed__6; lean_object* l_Lean_Parser_mkAntiquot(uint8_t, lean_object*, lean_object*, uint8_t); lean_object* l_Lean_Parser_Term_dollarProj___elambda__1___closed__6; +lean_object* l_Lean_Parser_Term_let__core___closed__4; lean_object* l_Lean_Parser_Term_explicit; lean_object* l_Lean_Parser_Term_match__syntax___elambda__1___closed__7; lean_object* l___regBuiltinParser_Lean_Parser_Term_arrow(lean_object*); @@ -1777,6 +1804,7 @@ lean_object* l_Lean_Parser_Term_let___elambda__1(lean_object*, lean_object*, lea lean_object* l_Lean_Parser_Term_leftArrow___elambda__1___rarg___closed__6; lean_object* l_Lean_Parser_ParserState_mkUnexpectedError(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_subtype___closed__4; +lean_object* l_Lean_Parser_Term_let__core___elambda__1___closed__9; lean_object* l_Lean_Parser_Term_nomatch___closed__3; lean_object* l_Lean_Parser_Term_orM___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_bindOp___elambda__1___closed__3; @@ -26170,6 +26198,611 @@ x_6 = l_Lean_Parser_addBuiltinParser(x_2, x_3, x_4, x_5, x_1); return x_6; } } +lean_object* _init_l_Lean_Parser_Term_let__core___elambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("let_core"); +return x_1; +} +} +lean_object* _init_l_Lean_Parser_Term_let__core___elambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_mkAppStx___closed__6; +x_2 = l_Lean_Parser_Term_let__core___elambda__1___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_let__core___elambda__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Term_let__core___elambda__1___closed__2; +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Parser_Term_let__core___elambda__1___closed__4() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; +x_1 = 0; +x_2 = l_Lean_Parser_Term_let__core___elambda__1___closed__1; +x_3 = l_Lean_Parser_Term_let__core___elambda__1___closed__3; +x_4 = 1; +x_5 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3, x_4); +return x_5; +} +} +lean_object* _init_l_Lean_Parser_Term_let__core___elambda__1___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("let_core "); +return x_1; +} +} +lean_object* _init_l_Lean_Parser_Term_let__core___elambda__1___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Term_let__core___elambda__1___closed__5; +x_2 = l_String_trim(x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Parser_Term_let__core___elambda__1___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(":="); +return x_1; +} +} +lean_object* _init_l_Lean_Parser_Term_let__core___elambda__1___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Term_let__core___elambda__1___closed__7; +x_2 = l_String_trim(x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Parser_Term_let__core___elambda__1___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Char_HasRepr___closed__1; +x_2 = l_Lean_Parser_Term_let__core___elambda__1___closed__8; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_let__core___elambda__1___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_let__core___elambda__1___closed__9; +x_2 = l_Char_HasRepr___closed__1; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_let__core___elambda__1___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Parser_Term_let__core___elambda__1___closed__10; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_let__core___elambda__1___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Parser_Term_have___elambda__1___closed__9; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_let__core___elambda__1___closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Char_HasRepr___closed__1; +x_2 = l_Lean_Parser_Term_let__core___elambda__1___closed__6; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_let__core___elambda__1___closed__14() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_let__core___elambda__1___closed__13; +x_2 = l_Char_HasRepr___closed__1; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_let__core___elambda__1___closed__15() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Parser_Term_let__core___elambda__1___closed__14; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* l_Lean_Parser_Term_let__core___elambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_4 = l_Lean_Parser_Term_let__core___elambda__1___closed__4; +x_5 = lean_ctor_get(x_4, 1); +lean_inc(x_5); +x_6 = lean_ctor_get(x_3, 0); +lean_inc(x_6); +x_7 = lean_array_get_size(x_6); +lean_dec(x_6); +x_8 = lean_ctor_get(x_3, 1); +lean_inc(x_8); +lean_inc(x_2); +x_9 = lean_apply_3(x_5, x_1, x_2, x_3); +x_10 = lean_ctor_get(x_9, 3); +lean_inc(x_10); +if (lean_obj_tag(x_10) == 0) +{ +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +return x_9; +} +else +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +lean_dec(x_10); +x_12 = lean_ctor_get(x_9, 1); +lean_inc(x_12); +x_13 = lean_nat_dec_eq(x_12, x_8); +lean_dec(x_12); +if (x_13 == 0) +{ +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +return x_9; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_57; lean_object* x_87; lean_object* x_88; +lean_inc(x_8); +x_14 = l_Lean_Parser_ParserState_restore(x_9, x_7, x_8); +lean_dec(x_7); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_array_get_size(x_15); +lean_dec(x_15); +lean_inc(x_2); +x_87 = l_Lean_Parser_tokenFn(x_2, x_14); +x_88 = lean_ctor_get(x_87, 3); +lean_inc(x_88); +if (lean_obj_tag(x_88) == 0) +{ +lean_object* x_89; lean_object* x_90; +x_89 = lean_ctor_get(x_87, 0); +lean_inc(x_89); +x_90 = l_Array_back___at___private_Init_Lean_Parser_Parser_6__nameLitAux___spec__1(x_89); +lean_dec(x_89); +if (lean_obj_tag(x_90) == 2) +{ +lean_object* x_91; lean_object* x_92; uint8_t x_93; +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +lean_dec(x_90); +x_92 = l_Lean_Parser_Term_let__core___elambda__1___closed__6; +x_93 = lean_string_dec_eq(x_91, x_92); +lean_dec(x_91); +if (x_93 == 0) +{ +lean_object* x_94; lean_object* x_95; +x_94 = l_Lean_Parser_Term_let__core___elambda__1___closed__15; +lean_inc(x_8); +x_95 = l_Lean_Parser_ParserState_mkErrorsAt(x_87, x_94, x_8); +x_57 = x_95; +goto block_86; +} +else +{ +x_57 = x_87; +goto block_86; +} +} +else +{ +lean_object* x_96; lean_object* x_97; +lean_dec(x_90); +x_96 = l_Lean_Parser_Term_let__core___elambda__1___closed__15; +lean_inc(x_8); +x_97 = l_Lean_Parser_ParserState_mkErrorsAt(x_87, x_96, x_8); +x_57 = x_97; +goto block_86; +} +} +else +{ +lean_object* x_98; lean_object* x_99; +lean_dec(x_88); +x_98 = l_Lean_Parser_Term_let__core___elambda__1___closed__15; +lean_inc(x_8); +x_99 = l_Lean_Parser_ParserState_mkErrorsAt(x_87, x_98, x_8); +x_57 = x_99; +goto block_86; +} +block_56: +{ +lean_object* x_18; +x_18 = lean_ctor_get(x_17, 3); +lean_inc(x_18); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_19 = l_Lean_Parser_termParser___closed__2; +x_20 = lean_unsigned_to_nat(0u); +lean_inc(x_2); +x_21 = l_Lean_Parser_categoryParserFn(x_19, x_20, x_2, x_17); +x_22 = lean_ctor_get(x_21, 3); +lean_inc(x_22); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_inc(x_2); +x_24 = l_Lean_Parser_tokenFn(x_2, x_21); +x_25 = lean_ctor_get(x_24, 3); +lean_inc(x_25); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_24, 0); +lean_inc(x_26); +x_27 = l_Array_back___at___private_Init_Lean_Parser_Parser_6__nameLitAux___spec__1(x_26); +lean_dec(x_26); +if (lean_obj_tag(x_27) == 2) +{ +lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_28 = lean_ctor_get(x_27, 1); +lean_inc(x_28); +lean_dec(x_27); +x_29 = l_Lean_Parser_Term_have___elambda__1___closed__7; +x_30 = lean_string_dec_eq(x_28, x_29); +lean_dec(x_28); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +lean_dec(x_2); +x_31 = l_Lean_Parser_Term_have___elambda__1___closed__10; +x_32 = l_Lean_Parser_ParserState_mkErrorsAt(x_24, x_31, x_23); +x_33 = l_Lean_Parser_Term_let__core___elambda__1___closed__2; +x_34 = l_Lean_Parser_ParserState_mkNode(x_32, x_33, x_16); +x_35 = l_Lean_Parser_mergeOrElseErrors(x_34, x_11, x_8); +lean_dec(x_8); +return x_35; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +lean_dec(x_23); +x_36 = l_Lean_Parser_categoryParserFn(x_19, x_20, x_2, x_24); +x_37 = l_Lean_Parser_Term_let__core___elambda__1___closed__2; +x_38 = l_Lean_Parser_ParserState_mkNode(x_36, x_37, x_16); +x_39 = l_Lean_Parser_mergeOrElseErrors(x_38, x_11, x_8); +lean_dec(x_8); +return x_39; +} +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +lean_dec(x_27); +lean_dec(x_2); +x_40 = l_Lean_Parser_Term_have___elambda__1___closed__10; +x_41 = l_Lean_Parser_ParserState_mkErrorsAt(x_24, x_40, x_23); +x_42 = l_Lean_Parser_Term_let__core___elambda__1___closed__2; +x_43 = l_Lean_Parser_ParserState_mkNode(x_41, x_42, x_16); +x_44 = l_Lean_Parser_mergeOrElseErrors(x_43, x_11, x_8); +lean_dec(x_8); +return x_44; +} +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +lean_dec(x_25); +lean_dec(x_2); +x_45 = l_Lean_Parser_Term_have___elambda__1___closed__10; +x_46 = l_Lean_Parser_ParserState_mkErrorsAt(x_24, x_45, x_23); +x_47 = l_Lean_Parser_Term_let__core___elambda__1___closed__2; +x_48 = l_Lean_Parser_ParserState_mkNode(x_46, x_47, x_16); +x_49 = l_Lean_Parser_mergeOrElseErrors(x_48, x_11, x_8); +lean_dec(x_8); +return x_49; +} +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +lean_dec(x_22); +lean_dec(x_2); +x_50 = l_Lean_Parser_Term_let__core___elambda__1___closed__2; +x_51 = l_Lean_Parser_ParserState_mkNode(x_21, x_50, x_16); +x_52 = l_Lean_Parser_mergeOrElseErrors(x_51, x_11, x_8); +lean_dec(x_8); +return x_52; +} +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; +lean_dec(x_18); +lean_dec(x_2); +x_53 = l_Lean_Parser_Term_let__core___elambda__1___closed__2; +x_54 = l_Lean_Parser_ParserState_mkNode(x_17, x_53, x_16); +x_55 = l_Lean_Parser_mergeOrElseErrors(x_54, x_11, x_8); +lean_dec(x_8); +return x_55; +} +} +block_86: +{ +lean_object* x_58; +x_58 = lean_ctor_get(x_57, 3); +lean_inc(x_58); +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_59 = l_Lean_Parser_termParser___closed__2; +x_60 = lean_unsigned_to_nat(0u); +lean_inc(x_2); +x_61 = l_Lean_Parser_categoryParserFn(x_59, x_60, x_2, x_57); +x_62 = lean_ctor_get(x_61, 3); +lean_inc(x_62); +if (lean_obj_tag(x_62) == 0) +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_61, 1); +lean_inc(x_63); +lean_inc(x_2); +x_64 = l_Lean_Parser_tokenFn(x_2, x_61); +x_65 = lean_ctor_get(x_64, 3); +lean_inc(x_65); +if (lean_obj_tag(x_65) == 0) +{ +lean_object* x_66; lean_object* x_67; +x_66 = lean_ctor_get(x_64, 0); +lean_inc(x_66); +x_67 = l_Array_back___at___private_Init_Lean_Parser_Parser_6__nameLitAux___spec__1(x_66); +lean_dec(x_66); +if (lean_obj_tag(x_67) == 2) +{ +lean_object* x_68; lean_object* x_69; uint8_t x_70; +x_68 = lean_ctor_get(x_67, 1); +lean_inc(x_68); +lean_dec(x_67); +x_69 = l_Lean_Parser_Term_let__core___elambda__1___closed__8; +x_70 = lean_string_dec_eq(x_68, x_69); +lean_dec(x_68); +if (x_70 == 0) +{ +lean_object* x_71; lean_object* x_72; +x_71 = l_Lean_Parser_Term_let__core___elambda__1___closed__11; +x_72 = l_Lean_Parser_ParserState_mkErrorsAt(x_64, x_71, x_63); +x_17 = x_72; +goto block_56; +} +else +{ +lean_dec(x_63); +x_17 = x_64; +goto block_56; +} +} +else +{ +lean_object* x_73; lean_object* x_74; +lean_dec(x_67); +x_73 = l_Lean_Parser_Term_let__core___elambda__1___closed__11; +x_74 = l_Lean_Parser_ParserState_mkErrorsAt(x_64, x_73, x_63); +x_17 = x_74; +goto block_56; +} +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +lean_dec(x_65); +lean_dec(x_2); +x_75 = l_Lean_Parser_Term_let__core___elambda__1___closed__11; +x_76 = l_Lean_Parser_ParserState_mkErrorsAt(x_64, x_75, x_63); +x_77 = l_Lean_Parser_Term_let__core___elambda__1___closed__2; +x_78 = l_Lean_Parser_ParserState_mkNode(x_76, x_77, x_16); +x_79 = l_Lean_Parser_mergeOrElseErrors(x_78, x_11, x_8); +lean_dec(x_8); +return x_79; +} +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +lean_dec(x_62); +lean_dec(x_2); +x_80 = l_Lean_Parser_Term_let__core___elambda__1___closed__2; +x_81 = l_Lean_Parser_ParserState_mkNode(x_61, x_80, x_16); +x_82 = l_Lean_Parser_mergeOrElseErrors(x_81, x_11, x_8); +lean_dec(x_8); +return x_82; +} +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; +lean_dec(x_58); +lean_dec(x_2); +x_83 = l_Lean_Parser_Term_let__core___elambda__1___closed__2; +x_84 = l_Lean_Parser_ParserState_mkNode(x_57, x_83, x_16); +x_85 = l_Lean_Parser_mergeOrElseErrors(x_84, x_11, x_8); +lean_dec(x_8); +return x_85; +} +} +} +} +} +} +lean_object* _init_l_Lean_Parser_Term_let__core___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Parser_Term_let__core___elambda__1___closed__6; +x_3 = l_Lean_Parser_symbolInfo(x_2, x_1); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_let__core___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Parser_Term_let__core___elambda__1___closed__8; +x_3 = l_Lean_Parser_symbolInfo(x_2, x_1); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_let__core___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_typeAscription___closed__2; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_Parser_Term_have___closed__4; +x_4 = l_Lean_Parser_andthenInfo(x_2, x_3); +return x_4; +} +} +lean_object* _init_l_Lean_Parser_Term_let__core___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_let__core___closed__2; +x_2 = l_Lean_Parser_Term_let__core___closed__3; +x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_let__core___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_typeAscription___closed__2; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_Parser_Term_let__core___closed__4; +x_4 = l_Lean_Parser_andthenInfo(x_2, x_3); +return x_4; +} +} +lean_object* _init_l_Lean_Parser_Term_let__core___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_let__core___closed__1; +x_2 = l_Lean_Parser_Term_let__core___closed__5; +x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_let__core___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_let__core___elambda__1___closed__2; +x_2 = l_Lean_Parser_Term_let__core___closed__6; +x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_let__core___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_let__core___elambda__1___closed__4; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_Parser_Term_let__core___closed__7; +x_4 = l_Lean_Parser_orelseInfo(x_2, x_3); +return x_4; +} +} +lean_object* _init_l_Lean_Parser_Term_let__core___closed__9() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_let__core___elambda__1), 3, 0); +return x_1; +} +} +lean_object* _init_l_Lean_Parser_Term_let__core___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_let__core___closed__8; +x_2 = l_Lean_Parser_Term_let__core___closed__9; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_let__core() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Parser_Term_let__core___closed__10; +return x_1; +} +} +lean_object* l___regBuiltinParser_Lean_Parser_Term_let__core(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = 0; +x_3 = l_Lean_Parser_termParser___closed__2; +x_4 = l_Lean_Parser_Term_let__core___elambda__1___closed__2; +x_5 = l_Lean_Parser_Term_let__core; +x_6 = l_Lean_Parser_addBuiltinParser(x_2, x_3, x_4, x_5, x_1); +return x_6; +} +} lean_object* _init_l_Lean_Parser_Term_leftArrow___elambda__1___rarg___closed__1() { _start: { @@ -38876,6 +39509,61 @@ lean_mark_persistent(l_Lean_Parser_Term_let); res = l___regBuiltinParser_Lean_Parser_Term_let(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_Parser_Term_let__core___elambda__1___closed__1 = _init_l_Lean_Parser_Term_let__core___elambda__1___closed__1(); +lean_mark_persistent(l_Lean_Parser_Term_let__core___elambda__1___closed__1); +l_Lean_Parser_Term_let__core___elambda__1___closed__2 = _init_l_Lean_Parser_Term_let__core___elambda__1___closed__2(); +lean_mark_persistent(l_Lean_Parser_Term_let__core___elambda__1___closed__2); +l_Lean_Parser_Term_let__core___elambda__1___closed__3 = _init_l_Lean_Parser_Term_let__core___elambda__1___closed__3(); +lean_mark_persistent(l_Lean_Parser_Term_let__core___elambda__1___closed__3); +l_Lean_Parser_Term_let__core___elambda__1___closed__4 = _init_l_Lean_Parser_Term_let__core___elambda__1___closed__4(); +lean_mark_persistent(l_Lean_Parser_Term_let__core___elambda__1___closed__4); +l_Lean_Parser_Term_let__core___elambda__1___closed__5 = _init_l_Lean_Parser_Term_let__core___elambda__1___closed__5(); +lean_mark_persistent(l_Lean_Parser_Term_let__core___elambda__1___closed__5); +l_Lean_Parser_Term_let__core___elambda__1___closed__6 = _init_l_Lean_Parser_Term_let__core___elambda__1___closed__6(); +lean_mark_persistent(l_Lean_Parser_Term_let__core___elambda__1___closed__6); +l_Lean_Parser_Term_let__core___elambda__1___closed__7 = _init_l_Lean_Parser_Term_let__core___elambda__1___closed__7(); +lean_mark_persistent(l_Lean_Parser_Term_let__core___elambda__1___closed__7); +l_Lean_Parser_Term_let__core___elambda__1___closed__8 = _init_l_Lean_Parser_Term_let__core___elambda__1___closed__8(); +lean_mark_persistent(l_Lean_Parser_Term_let__core___elambda__1___closed__8); +l_Lean_Parser_Term_let__core___elambda__1___closed__9 = _init_l_Lean_Parser_Term_let__core___elambda__1___closed__9(); +lean_mark_persistent(l_Lean_Parser_Term_let__core___elambda__1___closed__9); +l_Lean_Parser_Term_let__core___elambda__1___closed__10 = _init_l_Lean_Parser_Term_let__core___elambda__1___closed__10(); +lean_mark_persistent(l_Lean_Parser_Term_let__core___elambda__1___closed__10); +l_Lean_Parser_Term_let__core___elambda__1___closed__11 = _init_l_Lean_Parser_Term_let__core___elambda__1___closed__11(); +lean_mark_persistent(l_Lean_Parser_Term_let__core___elambda__1___closed__11); +l_Lean_Parser_Term_let__core___elambda__1___closed__12 = _init_l_Lean_Parser_Term_let__core___elambda__1___closed__12(); +lean_mark_persistent(l_Lean_Parser_Term_let__core___elambda__1___closed__12); +l_Lean_Parser_Term_let__core___elambda__1___closed__13 = _init_l_Lean_Parser_Term_let__core___elambda__1___closed__13(); +lean_mark_persistent(l_Lean_Parser_Term_let__core___elambda__1___closed__13); +l_Lean_Parser_Term_let__core___elambda__1___closed__14 = _init_l_Lean_Parser_Term_let__core___elambda__1___closed__14(); +lean_mark_persistent(l_Lean_Parser_Term_let__core___elambda__1___closed__14); +l_Lean_Parser_Term_let__core___elambda__1___closed__15 = _init_l_Lean_Parser_Term_let__core___elambda__1___closed__15(); +lean_mark_persistent(l_Lean_Parser_Term_let__core___elambda__1___closed__15); +l_Lean_Parser_Term_let__core___closed__1 = _init_l_Lean_Parser_Term_let__core___closed__1(); +lean_mark_persistent(l_Lean_Parser_Term_let__core___closed__1); +l_Lean_Parser_Term_let__core___closed__2 = _init_l_Lean_Parser_Term_let__core___closed__2(); +lean_mark_persistent(l_Lean_Parser_Term_let__core___closed__2); +l_Lean_Parser_Term_let__core___closed__3 = _init_l_Lean_Parser_Term_let__core___closed__3(); +lean_mark_persistent(l_Lean_Parser_Term_let__core___closed__3); +l_Lean_Parser_Term_let__core___closed__4 = _init_l_Lean_Parser_Term_let__core___closed__4(); +lean_mark_persistent(l_Lean_Parser_Term_let__core___closed__4); +l_Lean_Parser_Term_let__core___closed__5 = _init_l_Lean_Parser_Term_let__core___closed__5(); +lean_mark_persistent(l_Lean_Parser_Term_let__core___closed__5); +l_Lean_Parser_Term_let__core___closed__6 = _init_l_Lean_Parser_Term_let__core___closed__6(); +lean_mark_persistent(l_Lean_Parser_Term_let__core___closed__6); +l_Lean_Parser_Term_let__core___closed__7 = _init_l_Lean_Parser_Term_let__core___closed__7(); +lean_mark_persistent(l_Lean_Parser_Term_let__core___closed__7); +l_Lean_Parser_Term_let__core___closed__8 = _init_l_Lean_Parser_Term_let__core___closed__8(); +lean_mark_persistent(l_Lean_Parser_Term_let__core___closed__8); +l_Lean_Parser_Term_let__core___closed__9 = _init_l_Lean_Parser_Term_let__core___closed__9(); +lean_mark_persistent(l_Lean_Parser_Term_let__core___closed__9); +l_Lean_Parser_Term_let__core___closed__10 = _init_l_Lean_Parser_Term_let__core___closed__10(); +lean_mark_persistent(l_Lean_Parser_Term_let__core___closed__10); +l_Lean_Parser_Term_let__core = _init_l_Lean_Parser_Term_let__core(); +lean_mark_persistent(l_Lean_Parser_Term_let__core); +res = l___regBuiltinParser_Lean_Parser_Term_let__core(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_Parser_Term_leftArrow___elambda__1___rarg___closed__1 = _init_l_Lean_Parser_Term_leftArrow___elambda__1___rarg___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_leftArrow___elambda__1___rarg___closed__1); l_Lean_Parser_Term_leftArrow___elambda__1___rarg___closed__2 = _init_l_Lean_Parser_Term_leftArrow___elambda__1___rarg___closed__2();