chore: update stage0

This commit is contained in:
Leonardo de Moura 2020-05-20 17:01:49 -07:00
parent f427a6bd3f
commit 64f21e0248
16 changed files with 1731 additions and 1669 deletions

View file

@ -48,7 +48,7 @@ end JoinPointId
abbrev MData := KVMap
namespace MData
abbrev empty : MData := ({} : KVMap)
abbrev empty : MData := { : KVMap }
instance : HasEmptyc MData := ⟨empty⟩
end MData

View file

@ -14,7 +14,7 @@ namespace Lean
def Options := KVMap
namespace Options
def empty : Options := ({} : KVMap)
def empty : Options := { : KVMap }
instance : HasEmptyc Options := ⟨empty⟩
instance : Inhabited Options := ⟨empty⟩
instance : HasToString Options := inferInstanceAs (HasToString KVMap)

View file

@ -88,7 +88,7 @@ EIO.adaptExcept (fun (ex : Empty) => Empty.rec _ ex) $
def process (input : String) (env : Environment) (opts : Options) (fileName : Option String := none) : IO (Environment × MessageLog) := do
let fileName := fileName.getD "<input>";
let inputCtx := Parser.mkInputContext input fileName;
parserStateRef ← IO.mkRef ({} : Parser.ModuleParserState);
parserStateRef ← IO.mkRef { : Parser.ModuleParserState };
cmdStateRef ← IO.mkRef $ Command.mkState env {} opts;
IO.processCommands inputCtx parserStateRef cmdStateRef;
cmdState ← cmdStateRef.get;

View file

@ -11,7 +11,7 @@ namespace Elab
def headerToImports (header : Syntax) : List Import :=
let header := header.asNode;
let imports := if (header.getArg 0).isNone then [({ module := `Init } : Import)] else [];
let imports := if (header.getArg 0).isNone then [{ module := `Init : Import }] else [];
imports ++ (header.getArg 1).getArgs.toList.map (fun stx =>
-- `stx` is of the form `(Module.import "import" "runtime"? id)
let runtime := !(stx.getArg 1).isNone;

View file

@ -168,7 +168,7 @@ def HeadInfo.generalizes : HeadInfo → HeadInfo → Bool
private def getHeadInfo (alt : Alt) : HeadInfo :=
let pat := alt.fst.head!;
let unconditional (rhsFn) := ({ rhsFn := rhsFn } : HeadInfo );
let unconditional (rhsFn) := { rhsFn := rhsFn : HeadInfo };
-- variable pattern
if pat.isOfKind `Lean.Parser.Term.id then unconditional $ fun rhs => `(let $pat := discr; $rhs)
-- wildcard pattern

View file

@ -79,7 +79,7 @@ protected def BinderInfo.beq : BinderInfo → BinderInfo → Bool
instance BinderInfo.hasBeq : HasBeq BinderInfo := ⟨BinderInfo.beq⟩
abbrev MData := KVMap
abbrev MData.empty : MData := ({} : KVMap)
abbrev MData.empty : MData := { : KVMap }
instance MVData.hasEmptc : HasEmptyc MData := ⟨MData.empty⟩
/--

View file

@ -465,7 +465,7 @@ traceCtx `Meta.synthInstance $ do
mvar ← mkFreshExprMVar type;
mctx ← getMCtx;
let key := mkTableKey mctx type;
adaptState' (fun (s : Meta.State) => ( { toState := s } : State )) (fun (s : State) => s.toState) $ do {
adaptState' (fun (s : Meta.State) => { toState := s : State }) (fun (s : State) => s.toState) $ do {
newSubgoal mctx key mvar Waiter.root;
synth fuel
}

View file

@ -44,7 +44,7 @@ let stx := s.stxStack.back;
match s.errorMsg with
| some errorMsg =>
let msg := mkErrorMessage ctx s.pos (toString errorMsg);
(stx, { pos := s.pos, recovering := true }, ({} : MessageLog).add msg)
(stx, { pos := s.pos, recovering := true }, { : MessageLog }.add msg)
| none =>
(stx, { pos := s.pos }, {})

View file

@ -75,8 +75,7 @@ def haveAssign := parser! " := " >> termParser
def structInstArrayRef := parser! "[" >> termParser >>"]"
def structInstLVal := (ident <|> fieldIdx <|> structInstArrayRef) >> many (group ("." >> (ident <|> fieldIdx)) <|> structInstArrayRef)
def structInstField := parser! structInstLVal >> " := " >> termParser
def structInstSource := parser! ".." >> optional termParser
@[builtinTermParser] def structInst := parser! symbol "{" appPrec >> optional (try (ident >> checkWsBefore "expected space '.'" >> " . ")) >> sepBy (structInstField <|> structInstSource) ", " true >> "}"
@[builtinTermParser] def structInst := parser! symbol "{" appPrec >> optional (try (termParser >> "with")) >> sepBy structInstField ", " true >> optional ".." >> optional (" : " >> termParser) >> "}"
def typeSpec := parser! " : " >> termParser
def optType : Parser := optional typeSpec
@[builtinTermParser] def subtype := parser! "{" >> ident >> optType >> " // " >> termParser >> "}"

File diff suppressed because it is too large Load diff

View file

@ -53,7 +53,6 @@ extern lean_object* l___private_Init_Lean_Elab_Term_5__expandCDot___main___close
lean_object* l_Lean_Elab_Term_synthesizeInst(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Init_Lean_Elab_DoNotation_3__getDoElems___boxed(lean_object*);
lean_object* l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__6;
extern lean_object* l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__7;
lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_Parser_Term_do___elambda__1___closed__2;
lean_object* l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__3;
@ -75,8 +74,8 @@ uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
lean_object* l_Lean_Elab_Term_getLevel(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_nat_sub(lean_object*, lean_object*);
lean_object* l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(lean_object*);
extern lean_object* l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__3;
lean_object* lean_array_get(lean_object*, lean_object*, lean_object*);
extern lean_object* l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__5;
lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElems(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__6;
extern lean_object* l_Lean_Parser_Term_doId___elambda__1___closed__2;
@ -168,6 +167,7 @@ lean_object* l_Lean_indentExpr(lean_object*);
lean_object* l_Lean_mkConst(lean_object*, lean_object*);
lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor___closed__4;
extern lean_object* l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__6;
lean_object* l___private_Init_Lean_Elab_DoNotation_4__hasLiftMethod___main___boxed(lean_object*);
extern lean_object* l_Lean_Elab_Term_quoteAutoTactic___main___closed__5;
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
@ -2424,9 +2424,9 @@ lean_ctor_set(x_165, 1, x_164);
x_166 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__2;
x_167 = lean_array_push(x_166, x_165);
x_168 = lean_array_push(x_167, x_152);
x_169 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__4;
x_169 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__3;
x_170 = lean_array_push(x_168, x_169);
x_171 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__7;
x_171 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__6;
x_172 = lean_array_push(x_170, x_171);
x_173 = lean_array_push(x_129, x_117);
x_174 = lean_alloc_ctor(1, 2, 0);
@ -2441,7 +2441,7 @@ x_180 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_180, 0, x_179);
lean_ctor_set(x_180, 1, x_178);
x_181 = lean_array_push(x_129, x_180);
x_182 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__5;
x_182 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__4;
x_183 = lean_array_push(x_181, x_182);
x_184 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__2;
x_185 = lean_array_push(x_184, x_144);
@ -2513,9 +2513,9 @@ lean_ctor_set(x_219, 1, x_218);
x_220 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__2;
x_221 = lean_array_push(x_220, x_219);
x_222 = lean_array_push(x_221, x_206);
x_223 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__4;
x_223 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__3;
x_224 = lean_array_push(x_222, x_223);
x_225 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__7;
x_225 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__6;
x_226 = lean_array_push(x_224, x_225);
x_227 = lean_array_push(x_129, x_117);
x_228 = lean_alloc_ctor(1, 2, 0);
@ -2611,9 +2611,9 @@ lean_ctor_set(x_276, 1, x_274);
x_277 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__2;
x_278 = lean_array_push(x_277, x_276);
x_279 = lean_array_push(x_278, x_262);
x_280 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__4;
x_280 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__3;
x_281 = lean_array_push(x_279, x_280);
x_282 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__7;
x_282 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__6;
x_283 = lean_array_push(x_281, x_282);
x_284 = lean_array_push(x_260, x_117);
x_285 = lean_alloc_ctor(1, 2, 0);
@ -2628,7 +2628,7 @@ x_291 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_291, 0, x_290);
lean_ctor_set(x_291, 1, x_289);
x_292 = lean_array_push(x_260, x_291);
x_293 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__5;
x_293 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__4;
x_294 = lean_array_push(x_292, x_293);
x_295 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__2;
x_296 = lean_array_push(x_295, x_253);
@ -2704,9 +2704,9 @@ lean_ctor_set(x_334, 1, x_332);
x_335 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__2;
x_336 = lean_array_push(x_335, x_334);
x_337 = lean_array_push(x_336, x_320);
x_338 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__4;
x_338 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__3;
x_339 = lean_array_push(x_337, x_338);
x_340 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__7;
x_340 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__6;
x_341 = lean_array_push(x_339, x_340);
x_342 = lean_array_push(x_318, x_117);
x_343 = lean_alloc_ctor(1, 2, 0);
@ -3118,9 +3118,9 @@ lean_ctor_set(x_547, 1, x_546);
x_548 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__2;
x_549 = lean_array_push(x_548, x_547);
x_550 = lean_array_push(x_549, x_534);
x_551 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__4;
x_551 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__3;
x_552 = lean_array_push(x_550, x_551);
x_553 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__7;
x_553 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__6;
x_554 = lean_array_push(x_552, x_553);
x_555 = lean_array_push(x_511, x_499);
x_556 = lean_alloc_ctor(1, 2, 0);
@ -3135,7 +3135,7 @@ x_562 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_562, 0, x_561);
lean_ctor_set(x_562, 1, x_560);
x_563 = lean_array_push(x_511, x_562);
x_564 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__5;
x_564 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__4;
x_565 = lean_array_push(x_563, x_564);
x_566 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__2;
x_567 = lean_array_push(x_566, x_526);
@ -3207,9 +3207,9 @@ lean_ctor_set(x_601, 1, x_600);
x_602 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__2;
x_603 = lean_array_push(x_602, x_601);
x_604 = lean_array_push(x_603, x_588);
x_605 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__4;
x_605 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__3;
x_606 = lean_array_push(x_604, x_605);
x_607 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__7;
x_607 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__6;
x_608 = lean_array_push(x_606, x_607);
x_609 = lean_array_push(x_511, x_499);
x_610 = lean_alloc_ctor(1, 2, 0);
@ -3305,9 +3305,9 @@ lean_ctor_set(x_658, 1, x_656);
x_659 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__2;
x_660 = lean_array_push(x_659, x_658);
x_661 = lean_array_push(x_660, x_644);
x_662 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__4;
x_662 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__3;
x_663 = lean_array_push(x_661, x_662);
x_664 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__7;
x_664 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__6;
x_665 = lean_array_push(x_663, x_664);
x_666 = lean_array_push(x_642, x_499);
x_667 = lean_alloc_ctor(1, 2, 0);
@ -3322,7 +3322,7 @@ x_673 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_673, 0, x_672);
lean_ctor_set(x_673, 1, x_671);
x_674 = lean_array_push(x_642, x_673);
x_675 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__5;
x_675 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__4;
x_676 = lean_array_push(x_674, x_675);
x_677 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__2;
x_678 = lean_array_push(x_677, x_635);
@ -3398,9 +3398,9 @@ lean_ctor_set(x_716, 1, x_714);
x_717 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__2;
x_718 = lean_array_push(x_717, x_716);
x_719 = lean_array_push(x_718, x_702);
x_720 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__4;
x_720 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__3;
x_721 = lean_array_push(x_719, x_720);
x_722 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__7;
x_722 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__6;
x_723 = lean_array_push(x_721, x_722);
x_724 = lean_array_push(x_700, x_499);
x_725 = lean_alloc_ctor(1, 2, 0);

View file

@ -102,7 +102,6 @@ lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___b
uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*);
lean_object* l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__3;
lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___spec__1(size_t, lean_object*, lean_object*);
extern lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__6;
lean_object* l___private_Init_Lean_Elab_StructInst_10__expandParentFields(lean_object*, lean_object*, lean_object*);
lean_object* l_List_append___rarg(lean_object*, lean_object*);
lean_object* l_mkHashMap___at___private_Init_Lean_Elab_StructInst_12__mkFieldMap___spec__9(lean_object*);
@ -297,6 +296,7 @@ lean_object* l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__14;
lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___closed__2;
lean_object* l_Lean_Elab_Term_StructInst_Struct_hasFormat___closed__1;
lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce(lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_mkAppStx___closed__6;
lean_object* l_Lean_Elab_Term_StructInst_findField_x3f(lean_object*, lean_object*);
extern lean_object* l_Lean_Options_empty;
lean_object* lean_expr_dbg_to_string(lean_object*);
@ -356,6 +356,7 @@ lean_object* l_List_mapM___main___at_Lean_Elab_Term_StructInst_DefaultFields_mkD
extern lean_object* l_Lean_Elab_Term_termElabAttribute;
extern lean_object* l_Lean_Format_sbracket___closed__3;
lean_object* l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___main___spec__1(lean_object*);
lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__8;
lean_object* l_Lean_mkAtomFrom(lean_object*, lean_object*);
lean_object* l___private_Init_Lean_Elab_StructInst_9__expandNumLitFields(lean_object*, lean_object*, lean_object*);
size_t l_USize_mod(size_t, size_t);
@ -446,6 +447,7 @@ extern lean_object* l_Lean_Parser_Term_letIdDecl___closed__2;
lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduceProjOf_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__1;
lean_object* l___private_Init_Lean_Elab_StructInst_18__addMissingFields___at___private_Init_Lean_Elab_StructInst_19__expandStruct___main___spec__10(lean_object*, lean_object*, lean_object*);
lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__9;
extern lean_object* l_Lean_mkAppStx___closed__9;
lean_object* l_Lean_Elab_Term_whnfForall(lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_Syntax_isNone(lean_object*);
@ -501,7 +503,6 @@ lean_object* l_Array_filterAux___main___at___private_Init_Lean_Elab_StructInst_7
extern lean_object* l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4;
lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___main___lambda__1(lean_object*, lean_object*);
lean_object* l_List_head_x21___at___private_Init_Lean_Elab_StructInst_19__expandStruct___main___spec__3___boxed(lean_object*);
extern lean_object* l_Lean_Parser_Term_structInstSource___elambda__1___closed__2;
lean_object* l_Lean_Elab_Term_StructInst_Field_inhabited___closed__1;
lean_object* l_List_toArrayAux___main___rarg(lean_object*, lean_object*);
lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -524,6 +525,7 @@ lean_object* l___private_Init_Lean_Elab_StructInst_24__elabStruct___main(lean_ob
lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___main___boxed(lean_object*, lean_object*);
lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce___main(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__2;
lean_object* l_Lean_Elab_Term_StructInst_formatField___closed__4;
lean_object* l_Lean_Elab_Term_isLocalTermId_x3f(lean_object*, uint8_t, lean_object*, lean_object*);
lean_object* l_Lean_indentExpr(lean_object*);
lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getFieldValue_x3f___lambda__1___boxed(lean_object*, lean_object*);
@ -572,26 +574,44 @@ lean_object* _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_Expand
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("src");
x_1 = lean_mk_string("structInstSource");
return x_1;
}
}
lean_object* _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__1;
x_2 = lean_string_utf8_byte_size(x_1);
return x_2;
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_mkAppStx___closed__6;
x_2 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
lean_object* _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__3() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("src");
return x_1;
}
}
lean_object* _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__3;
x_2 = lean_string_utf8_byte_size(x_1);
return x_2;
}
}
lean_object* _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
x_1 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__1;
x_1 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__3;
x_2 = lean_unsigned_to_nat(0u);
x_3 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__2;
x_3 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__4;
x_4 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
@ -599,17 +619,17 @@ lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
lean_object* _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__4() {
lean_object* _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__1;
x_2 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__3;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
lean_object* _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__5() {
lean_object* _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__7() {
_start:
{
lean_object* x_1;
@ -617,21 +637,21 @@ x_1 = lean_mk_string("source has already been specified");
return x_1;
}
}
lean_object* _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__6() {
lean_object* _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__5;
x_1 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__7;
x_2 = lean_alloc_ctor(2, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
lean_object* _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__7() {
lean_object* _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__6;
x_1 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__8;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
@ -667,7 +687,7 @@ x_13 = lean_array_fset(x_2, x_1, x_12);
x_24 = x_11;
lean_inc(x_24);
x_25 = l_Lean_Syntax_getKind(x_24);
x_26 = l_Lean_Parser_Term_structInstSource___elambda__1___closed__2;
x_26 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__2;
x_27 = lean_name_eq(x_25, x_26);
lean_dec(x_25);
if (x_27 == 0)
@ -723,11 +743,11 @@ lean_inc(x_44);
x_45 = lean_ctor_get(x_43, 1);
lean_inc(x_45);
lean_dec(x_43);
x_46 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__4;
x_46 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__6;
x_47 = l_Lean_addMacroScope(x_44, x_46, x_41);
x_48 = lean_box(0);
x_49 = l_Lean_SourceInfo_inhabited___closed__1;
x_50 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__3;
x_50 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__5;
x_51 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_51, 0, x_49);
lean_ctor_set(x_51, 1, x_50);
@ -825,11 +845,11 @@ lean_inc(x_81);
x_82 = lean_ctor_get(x_80, 1);
lean_inc(x_82);
lean_dec(x_80);
x_83 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__4;
x_83 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__6;
x_84 = l_Lean_addMacroScope(x_81, x_83, x_78);
x_85 = lean_box(0);
x_86 = l_Lean_SourceInfo_inhabited___closed__1;
x_87 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__3;
x_87 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__5;
x_88 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_88, 0, x_86);
lean_ctor_set(x_88, 1, x_87);
@ -902,7 +922,7 @@ lean_object* x_108; lean_object* x_109; uint8_t x_110;
lean_dec(x_13);
lean_dec(x_3);
lean_dec(x_1);
x_108 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__7;
x_108 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__9;
x_109 = l_Lean_Elab_Term_throwError___rarg(x_24, x_108, x_4, x_5);
lean_dec(x_24);
x_110 = !lean_is_exclusive(x_109);
@ -1070,11 +1090,11 @@ if (x_40 == 0)
{
lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64;
x_41 = lean_ctor_get(x_39, 0);
x_42 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__4;
x_42 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__6;
x_43 = l_Lean_addMacroScope(x_41, x_42, x_37);
x_44 = lean_box(0);
x_45 = l_Lean_SourceInfo_inhabited___closed__1;
x_46 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__3;
x_46 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__5;
x_47 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_47, 0, x_45);
lean_ctor_set(x_47, 1, x_46);
@ -1114,11 +1134,11 @@ x_66 = lean_ctor_get(x_39, 1);
lean_inc(x_66);
lean_inc(x_65);
lean_dec(x_39);
x_67 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__4;
x_67 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__6;
x_68 = l_Lean_addMacroScope(x_65, x_67, x_37);
x_69 = lean_box(0);
x_70 = l_Lean_SourceInfo_inhabited___closed__1;
x_71 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__3;
x_71 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__5;
x_72 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_72, 0, x_70);
lean_ctor_set(x_72, 1, x_71);
@ -1184,11 +1204,11 @@ if (lean_is_exclusive(x_98)) {
lean_dec_ref(x_98);
x_101 = lean_box(0);
}
x_102 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__4;
x_102 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__6;
x_103 = l_Lean_addMacroScope(x_99, x_102, x_96);
x_104 = lean_box(0);
x_105 = l_Lean_SourceInfo_inhabited___closed__1;
x_106 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__3;
x_106 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__5;
x_107 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_107, 0, x_105);
lean_ctor_set(x_107, 1, x_106);
@ -1268,11 +1288,11 @@ if (lean_is_exclusive(x_136)) {
lean_dec_ref(x_136);
x_139 = lean_box(0);
}
x_140 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__4;
x_140 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__6;
x_141 = l_Lean_addMacroScope(x_137, x_140, x_134);
x_142 = lean_box(0);
x_143 = l_Lean_SourceInfo_inhabited___closed__1;
x_144 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__3;
x_144 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__5;
x_145 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_145, 0, x_143);
lean_ctor_set(x_145, 1, x_144);
@ -1817,7 +1837,7 @@ lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13;
x_10 = lean_array_fget(x_2, x_3);
lean_inc(x_10);
x_11 = l_Lean_Syntax_getKind(x_10);
x_12 = l_Lean_Parser_Term_structInstSource___elambda__1___closed__2;
x_12 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__2;
x_13 = lean_name_eq(x_11, x_12);
lean_dec(x_11);
if (x_13 == 0)
@ -1838,7 +1858,7 @@ if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; uint8_t x_19;
lean_dec(x_3);
x_17 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__7;
x_17 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__9;
x_18 = l_Lean_Elab_Term_throwError___rarg(x_10, x_17, x_5, x_6);
lean_dec(x_10);
x_19 = !lean_is_exclusive(x_18);
@ -2105,7 +2125,7 @@ lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13;
x_10 = lean_array_fget(x_2, x_3);
lean_inc(x_10);
x_11 = l_Lean_Syntax_getKind(x_10);
x_12 = l_Lean_Parser_Term_structInstSource___elambda__1___closed__2;
x_12 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__2;
x_13 = lean_name_eq(x_11, x_12);
if (x_13 == 0)
{
@ -9081,14 +9101,22 @@ return x_37;
lean_object* _init_l_Lean_Elab_Term_StructInst_formatField___closed__1() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string(" . ");
return x_1;
}
}
lean_object* _init_l_Lean_Elab_Term_StructInst_formatField___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Lean_Parser_Term_structInst___elambda__1___closed__6;
x_1 = l_Lean_Elab_Term_StructInst_formatField___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_StructInst_formatField___closed__2() {
lean_object* _init_l_Lean_Elab_Term_StructInst_formatField___closed__3() {
_start:
{
lean_object* x_1;
@ -9096,11 +9124,11 @@ x_1 = lean_mk_string("<default>");
return x_1;
}
}
lean_object* _init_l_Lean_Elab_Term_StructInst_formatField___closed__3() {
lean_object* _init_l_Lean_Elab_Term_StructInst_formatField___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Lean_Elab_Term_StructInst_formatField___closed__2;
x_1 = l_Lean_Elab_Term_StructInst_formatField___closed__3;
x_2 = lean_alloc_ctor(2, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
@ -9112,7 +9140,7 @@ _start:
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;
x_3 = lean_ctor_get(x_2, 1);
lean_inc(x_3);
x_4 = l_Lean_Elab_Term_StructInst_formatField___closed__1;
x_4 = l_Lean_Elab_Term_StructInst_formatField___closed__2;
x_5 = l_Lean_Format_joinSep___main___at_Lean_Elab_Term_StructInst_formatField___spec__1(x_3, x_4);
x_6 = 0;
x_7 = l_Lean_formatEntry___closed__2;
@ -9155,7 +9183,7 @@ default:
{
lean_object* x_16; lean_object* x_17;
lean_dec(x_1);
x_16 = l_Lean_Elab_Term_StructInst_formatField___closed__3;
x_16 = l_Lean_Elab_Term_StructInst_formatField___closed__4;
x_17 = lean_alloc_ctor(4, 2, 1);
lean_ctor_set(x_17, 0, x_8);
lean_ctor_set(x_17, 1, x_16);
@ -9289,7 +9317,7 @@ x_8 = lean_alloc_ctor(4, 2, 1);
lean_ctor_set(x_8, 0, x_7);
lean_ctor_set(x_8, 1, x_5);
lean_ctor_set_uint8(x_8, sizeof(void*)*2, x_6);
x_9 = l_Lean_Elab_Term_StructInst_formatField___closed__1;
x_9 = l_Lean_Elab_Term_StructInst_formatField___closed__2;
x_10 = lean_alloc_ctor(4, 2, 1);
lean_ctor_set(x_10, 0, x_8);
lean_ctor_set(x_10, 1, x_9);
@ -25871,6 +25899,10 @@ l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSo
lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__6);
l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__7 = _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__7();
lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__7);
l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__8 = _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__8();
lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__8);
l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__9 = _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__9();
lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__9);
l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__1 = _init_l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__1();
lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__1);
l_Lean_Elab_Term_StructInst_Source_inhabited = _init_l_Lean_Elab_Term_StructInst_Source_inhabited();
@ -25975,6 +26007,8 @@ l_Lean_Elab_Term_StructInst_formatField___closed__2 = _init_l_Lean_Elab_Term_Str
lean_mark_persistent(l_Lean_Elab_Term_StructInst_formatField___closed__2);
l_Lean_Elab_Term_StructInst_formatField___closed__3 = _init_l_Lean_Elab_Term_StructInst_formatField___closed__3();
lean_mark_persistent(l_Lean_Elab_Term_StructInst_formatField___closed__3);
l_Lean_Elab_Term_StructInst_formatField___closed__4 = _init_l_Lean_Elab_Term_StructInst_formatField___closed__4();
lean_mark_persistent(l_Lean_Elab_Term_StructInst_formatField___closed__4);
l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___main___spec__1___closed__1 = _init_l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___main___spec__1___closed__1();
lean_mark_persistent(l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___main___spec__1___closed__1);
l_Lean_Elab_Term_StructInst_formatStruct___main___closed__1 = _init_l_Lean_Elab_Term_StructInst_formatStruct___main___closed__1();

View file

@ -134,7 +134,6 @@ lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__25;
lean_object* lean_string_utf8_byte_size(lean_object*);
lean_object* l_Lean_mkAtom(lean_object*);
lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__20;
extern lean_object* l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__7;
lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__10;
lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__32;
lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
@ -202,6 +201,7 @@ extern lean_object* l_Lean_numLitKind;
extern lean_object* l_Lean_Parser_Command_strLitPrec___elambda__1___closed__2;
extern lean_object* l_Lean_Parser_Syntax_num___elambda__1___closed__1;
lean_object* l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(lean_object*);
extern lean_object* l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__3;
extern lean_object* l_Lean_Expr_isSyntheticSorry___closed__1;
lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__87;
lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__68;
@ -227,7 +227,6 @@ lean_object* l_Lean_Macro_addMacroScope(lean_object*, lean_object*, lean_object*
extern lean_object* l_Lean_Parser_Command_declValSimple___elambda__1___closed__2;
lean_object* lean_array_get(lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_String_HasQuote___closed__1;
extern lean_object* l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__5;
lean_object* l_Lean_Elab_Command_elabSyntax___closed__25;
extern lean_object* l_Lean_numLitKind___closed__1;
extern lean_object* l_Lean_Parser_Command_def___elambda__1___closed__1;
@ -551,6 +550,7 @@ lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__113;
lean_object* l_Lean_Elab_Command_expandNotation(lean_object*, lean_object*, lean_object*);
lean_object* l___private_Init_Lean_Elab_Command_3__setState(lean_object*, lean_object*, lean_object*);
lean_object* l___private_Init_Lean_Elab_Syntax_6__elabKind(lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__6;
lean_object* l_Array_umapMAux___main___at_Lean_Elab_Command_expandMacro___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Command_elabSyntax___closed__31;
lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__31;
@ -10579,13 +10579,13 @@ x_90 = l_Lean_Elab_Term_expandCDot_x3f___closed__3;
x_91 = lean_array_push(x_89, x_90);
x_92 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17;
x_93 = lean_array_push(x_92, x_85);
x_94 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__4;
x_94 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__3;
x_95 = lean_array_push(x_93, x_94);
x_96 = lean_array_push(x_95, x_42);
x_97 = lean_unsigned_to_nat(0u);
x_98 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_7, x_7, x_97, x_21);
lean_dec(x_7);
x_99 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__5;
x_99 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__4;
x_100 = lean_array_push(x_98, x_99);
x_101 = l_Lean_Elab_Command_elabMacroRulesAux___closed__23;
lean_inc(x_10);
@ -10804,13 +10804,13 @@ x_222 = l_Lean_Elab_Term_expandCDot_x3f___closed__3;
x_223 = lean_array_push(x_221, x_222);
x_224 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17;
x_225 = lean_array_push(x_224, x_217);
x_226 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__4;
x_226 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__3;
x_227 = lean_array_push(x_225, x_226);
x_228 = lean_array_push(x_227, x_174);
x_229 = lean_unsigned_to_nat(0u);
x_230 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_7, x_7, x_229, x_153);
lean_dec(x_7);
x_231 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__5;
x_231 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__4;
x_232 = lean_array_push(x_230, x_231);
x_233 = l_Lean_Elab_Command_elabMacroRulesAux___closed__23;
lean_inc(x_10);
@ -13255,7 +13255,7 @@ _start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__3;
x_2 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__7;
x_2 = l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__6;
x_3 = lean_array_push(x_1, x_2);
return x_3;
}

View file

@ -328,7 +328,6 @@ lean_object* l_Lean_Parser_Command_theorem___closed__6;
lean_object* l_Lean_Parser_Command_openHiding___closed__4;
lean_object* l_Lean_Parser_Command_docComment___elambda__1(lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_inductive___closed__7;
extern lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__14;
lean_object* l_Lean_Parser_Command_unsafe;
lean_object* l_Lean_Parser_Command_structure___closed__6;
lean_object* l_Lean_Parser_Command_check___elambda__1___closed__2;
@ -975,6 +974,7 @@ lean_object* l_Lean_Parser_Command_end___elambda__1___closed__3;
lean_object* l___regBuiltinParser_Lean_Parser_Command_open(lean_object*);
lean_object* l_Lean_Parser_Command_variable___closed__5;
lean_object* l_Lean_Parser_Command_variable___elambda__1___closed__5;
extern lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__17;
lean_object* l_Lean_Parser_Command_def___closed__2;
extern lean_object* l___private_Init_Lean_Parser_Parser_11__antiquotNestedExpr___elambda__1___closed__10;
lean_object* l_Lean_Parser_mkAntiquot(lean_object*, lean_object*, uint8_t);
@ -12392,7 +12392,7 @@ lean_dec(x_56);
if (x_58 == 0)
{
lean_object* x_59; lean_object* x_60;
x_59 = l_Lean_Parser_Term_structInst___elambda__1___closed__14;
x_59 = l_Lean_Parser_Term_structInst___elambda__1___closed__17;
lean_inc(x_7);
x_60 = l_Lean_Parser_ParserState_mkErrorsAt(x_52, x_59, x_7);
x_20 = x_60;
@ -12408,7 +12408,7 @@ else
{
lean_object* x_61; lean_object* x_62;
lean_dec(x_55);
x_61 = l_Lean_Parser_Term_structInst___elambda__1___closed__14;
x_61 = l_Lean_Parser_Term_structInst___elambda__1___closed__17;
lean_inc(x_7);
x_62 = l_Lean_Parser_ParserState_mkErrorsAt(x_52, x_61, x_7);
x_20 = x_62;
@ -12419,7 +12419,7 @@ else
{
lean_object* x_63; lean_object* x_64;
lean_dec(x_53);
x_63 = l_Lean_Parser_Term_structInst___elambda__1___closed__14;
x_63 = l_Lean_Parser_Term_structInst___elambda__1___closed__17;
lean_inc(x_7);
x_64 = l_Lean_Parser_ParserState_mkErrorsAt(x_52, x_63, x_7);
x_20 = x_64;
@ -12656,7 +12656,7 @@ lean_dec(x_126);
if (x_128 == 0)
{
lean_object* x_129; lean_object* x_130;
x_129 = l_Lean_Parser_Term_structInst___elambda__1___closed__14;
x_129 = l_Lean_Parser_Term_structInst___elambda__1___closed__17;
lean_inc(x_66);
x_130 = l_Lean_Parser_ParserState_mkErrorsAt(x_122, x_129, x_66);
x_90 = x_130;
@ -12672,7 +12672,7 @@ else
{
lean_object* x_131; lean_object* x_132;
lean_dec(x_125);
x_131 = l_Lean_Parser_Term_structInst___elambda__1___closed__14;
x_131 = l_Lean_Parser_Term_structInst___elambda__1___closed__17;
lean_inc(x_66);
x_132 = l_Lean_Parser_ParserState_mkErrorsAt(x_122, x_131, x_66);
x_90 = x_132;
@ -12683,7 +12683,7 @@ else
{
lean_object* x_133; lean_object* x_134;
lean_dec(x_123);
x_133 = l_Lean_Parser_Term_structInst___elambda__1___closed__14;
x_133 = l_Lean_Parser_Term_structInst___elambda__1___closed__17;
lean_inc(x_66);
x_134 = l_Lean_Parser_ParserState_mkErrorsAt(x_122, x_133, x_66);
x_90 = x_134;
@ -15871,7 +15871,7 @@ lean_dec(x_68);
if (x_70 == 0)
{
lean_object* x_71; lean_object* x_72;
x_71 = l_Lean_Parser_Term_structInst___elambda__1___closed__14;
x_71 = l_Lean_Parser_Term_structInst___elambda__1___closed__17;
x_72 = l_Lean_Parser_ParserState_mkErrorsAt(x_64, x_71, x_63);
x_39 = x_72;
goto block_62;
@ -15887,7 +15887,7 @@ else
{
lean_object* x_73; lean_object* x_74;
lean_dec(x_67);
x_73 = l_Lean_Parser_Term_structInst___elambda__1___closed__14;
x_73 = l_Lean_Parser_Term_structInst___elambda__1___closed__17;
x_74 = l_Lean_Parser_ParserState_mkErrorsAt(x_64, x_73, x_63);
x_39 = x_74;
goto block_62;
@ -15897,7 +15897,7 @@ else
{
lean_object* x_75; lean_object* x_76;
lean_dec(x_65);
x_75 = l_Lean_Parser_Term_structInst___elambda__1___closed__14;
x_75 = l_Lean_Parser_Term_structInst___elambda__1___closed__17;
x_76 = l_Lean_Parser_ParserState_mkErrorsAt(x_64, x_75, x_63);
x_39 = x_76;
goto block_62;
@ -16155,7 +16155,7 @@ lean_dec(x_155);
if (x_157 == 0)
{
lean_object* x_158; lean_object* x_159;
x_158 = l_Lean_Parser_Term_structInst___elambda__1___closed__14;
x_158 = l_Lean_Parser_Term_structInst___elambda__1___closed__17;
lean_inc(x_79);
x_159 = l_Lean_Parser_ParserState_mkErrorsAt(x_151, x_158, x_79);
x_125 = x_159;
@ -16171,7 +16171,7 @@ else
{
lean_object* x_160; lean_object* x_161;
lean_dec(x_154);
x_160 = l_Lean_Parser_Term_structInst___elambda__1___closed__14;
x_160 = l_Lean_Parser_Term_structInst___elambda__1___closed__17;
lean_inc(x_79);
x_161 = l_Lean_Parser_ParserState_mkErrorsAt(x_151, x_160, x_79);
x_125 = x_161;
@ -16182,7 +16182,7 @@ else
{
lean_object* x_162; lean_object* x_163;
lean_dec(x_152);
x_162 = l_Lean_Parser_Term_structInst___elambda__1___closed__14;
x_162 = l_Lean_Parser_Term_structInst___elambda__1___closed__17;
lean_inc(x_79);
x_163 = l_Lean_Parser_ParserState_mkErrorsAt(x_151, x_162, x_79);
x_125 = x_163;

View file

@ -164,7 +164,6 @@ lean_object* l_Lean_Parser_Tactic_clear___closed__1;
lean_object* l_Lean_Parser_Tactic_clear___closed__2;
lean_object* l_Lean_Parser_Tactic_clear;
lean_object* l_Lean_Parser_Tactic_clear___elambda__1___closed__3;
extern lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__14;
lean_object* l_Lean_Parser_Tactic_case___closed__4;
lean_object* l_Lean_Parser_Tactic_subst___closed__1;
lean_object* l_Lean_Parser_Tactic_induction;
@ -490,6 +489,7 @@ lean_object* l_Lean_Parser_Tactic_injection;
extern lean_object* l_Lean_Parser_Tactic_seq___closed__1;
lean_object* l_Lean_Parser_Tactic_exact___closed__2;
lean_object* l_Lean_Parser_Tactic_intro___closed__2;
extern lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__17;
extern lean_object* l___private_Init_Lean_Parser_Parser_11__antiquotNestedExpr___elambda__1___closed__10;
lean_object* l_Lean_Parser_mkAntiquot(lean_object*, lean_object*, uint8_t);
lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___closed__5;
@ -12440,7 +12440,7 @@ lean_dec(x_44);
if (x_46 == 0)
{
lean_object* x_47; lean_object* x_48;
x_47 = l_Lean_Parser_Term_structInst___elambda__1___closed__14;
x_47 = l_Lean_Parser_Term_structInst___elambda__1___closed__17;
x_48 = l_Lean_Parser_ParserState_mkErrorsAt(x_40, x_47, x_39);
x_8 = x_48;
goto block_38;
@ -12456,7 +12456,7 @@ else
{
lean_object* x_49; lean_object* x_50;
lean_dec(x_43);
x_49 = l_Lean_Parser_Term_structInst___elambda__1___closed__14;
x_49 = l_Lean_Parser_Term_structInst___elambda__1___closed__17;
x_50 = l_Lean_Parser_ParserState_mkErrorsAt(x_40, x_49, x_39);
x_8 = x_50;
goto block_38;
@ -12466,7 +12466,7 @@ else
{
lean_object* x_51; lean_object* x_52;
lean_dec(x_41);
x_51 = l_Lean_Parser_Term_structInst___elambda__1___closed__14;
x_51 = l_Lean_Parser_Term_structInst___elambda__1___closed__17;
x_52 = l_Lean_Parser_ParserState_mkErrorsAt(x_40, x_51, x_39);
x_8 = x_52;
goto block_38;
@ -12639,7 +12639,7 @@ lean_dec(x_105);
if (x_107 == 0)
{
lean_object* x_108; lean_object* x_109;
x_108 = l_Lean_Parser_Term_structInst___elambda__1___closed__14;
x_108 = l_Lean_Parser_Term_structInst___elambda__1___closed__17;
lean_inc(x_55);
x_109 = l_Lean_Parser_ParserState_mkErrorsAt(x_101, x_108, x_55);
x_64 = x_109;
@ -12655,7 +12655,7 @@ else
{
lean_object* x_110; lean_object* x_111;
lean_dec(x_104);
x_110 = l_Lean_Parser_Term_structInst___elambda__1___closed__14;
x_110 = l_Lean_Parser_Term_structInst___elambda__1___closed__17;
lean_inc(x_55);
x_111 = l_Lean_Parser_ParserState_mkErrorsAt(x_101, x_110, x_55);
x_64 = x_111;
@ -12666,7 +12666,7 @@ else
{
lean_object* x_112; lean_object* x_113;
lean_dec(x_102);
x_112 = l_Lean_Parser_Term_structInst___elambda__1___closed__14;
x_112 = l_Lean_Parser_Term_structInst___elambda__1___closed__17;
lean_inc(x_55);
x_113 = l_Lean_Parser_ParserState_mkErrorsAt(x_101, x_112, x_55);
x_64 = x_113;

File diff suppressed because it is too large Load diff