diff --git a/stage0/src/Init/Meta.lean b/stage0/src/Init/Meta.lean index 36f02a8b29..3ac8c6d0f9 100644 --- a/stage0/src/Init/Meta.lean +++ b/stage0/src/Init/Meta.lean @@ -601,27 +601,27 @@ instance : Quote Nat := ⟨fun n => Syntax.mkNumLit <| toString n⟩ instance : Quote Substring := ⟨fun s => Syntax.mkCApp `String.toSubstring #[quote s.toString]⟩ private def quoteName : Name → Syntax - | Name.anonymous => mkCIdent `Lean.Name.anonymous - | Name.str n s _ => Syntax.mkCApp `Lean.Name.mkStr #[quoteName n, quote s] - | Name.num n i _ => Syntax.mkCApp `Lean.Name.mkNum #[quoteName n, quote i] + | Name.anonymous => mkCIdent ``Name.anonymous + | Name.str n s _ => Syntax.mkCApp ``Name.mkStr #[quoteName n, quote s] + | Name.num n i _ => Syntax.mkCApp ``Name.mkNum #[quoteName n, quote i] instance : Quote Name := ⟨quoteName⟩ instance {α β : Type} [Quote α] [Quote β] : Quote (α × β) := - ⟨fun ⟨a, b⟩ => Syntax.mkCApp `Prod.mk #[quote a, quote b]⟩ + ⟨fun ⟨a, b⟩ => Syntax.mkCApp ``Prod.mk #[quote a, quote b]⟩ private def quoteList {α : Type} [Quote α] : List α → Syntax - | [] => mkCIdent `List.nil - | (x::xs) => Syntax.mkCApp `List.cons #[quote x, quoteList xs] + | [] => mkCIdent ``List.nil + | (x::xs) => Syntax.mkCApp ``List.cons #[quote x, quoteList xs] instance {α : Type} [Quote α] : Quote (List α) := ⟨quoteList⟩ instance {α : Type} [Quote α] : Quote (Array α) := - ⟨fun xs => Syntax.mkCApp `List.toArray #[quote xs.toList]⟩ + ⟨fun xs => Syntax.mkCApp ``List.toArray #[quote xs.toList]⟩ private def quoteOption {α : Type} [Quote α] : Option α → Syntax - | none => mkIdent `Option.none - | (some x) => Syntax.mkCApp `Option.some #[quote x] + | none => mkIdent ``none + | (some x) => Syntax.mkCApp ``some #[quote x] instance Option.hasQuote {α : Type} [Quote α] : Quote (Option α) := ⟨quoteOption⟩ diff --git a/stage0/src/Lean/Elab/BuiltinNotation.lean b/stage0/src/Lean/Elab/BuiltinNotation.lean index 7c297c4fec..2576064bc7 100644 --- a/stage0/src/Lean/Elab/BuiltinNotation.lean +++ b/stage0/src/Lean/Elab/BuiltinNotation.lean @@ -42,7 +42,6 @@ open Meta | _ => Macro.throwUnsupported @[builtinMacro Lean.Parser.Term.have] def expandHave : Macro := fun stx => - let stx := stx.setArg 4 (mkNullNode #[mkAtomFrom stx ";"]) -- HACK let mkId (x? : Option Syntax) : Syntax := x?.getD <| mkIdentFrom stx `this match stx with @@ -51,9 +50,7 @@ open Meta | `(have $[$x :]? $type by $tac:tacticSeq $[;]? $body) => `(have $[$x :]? $type from by $tac:tacticSeq; $body) | _ => Macro.throwUnsupported -@[builtinMacro Lean.Parser.Term.suffices] def expandSuffices : Macro := fun stx => - let stx := stx.setArg 4 (mkNullNode #[mkAtomFrom stx ";"]) -- HACK - match stx with +@[builtinMacro Lean.Parser.Term.suffices] def expandSuffices : Macro | `(suffices $[$x :]? $type from $val $[;]? $body) => `(have $[$x :]? $type from $body; $val) | `(suffices $[$x :]? $type by $tac:tacticSeq $[;]? $body) => `(have $[$x :]? $type from $body; by $tac:tacticSeq) | _ => Macro.throwUnsupported diff --git a/stage0/src/Lean/Elab/Command.lean b/stage0/src/Lean/Elab/Command.lean index ea37d1559a..15a3932b91 100644 --- a/stage0/src/Lean/Elab/Command.lean +++ b/stage0/src/Lean/Elab/Command.lean @@ -3,6 +3,7 @@ Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +import Lean.Parser.Command import Lean.ResolveName import Lean.Meta.Reduce import Lean.Elab.Log @@ -508,11 +509,11 @@ def elabOpenRenaming (n : SyntaxNode) : CommandElabM Unit := do @[builtinCommandElab «open»] def elabOpen : CommandElab := fun n => do let body := (n.getArg 1).asNode let k := body.getKind; - if k == `Lean.Parser.Command.openSimple then + if k == ``Parser.Command.openSimple then elabOpenSimple body - else if k == `Lean.Parser.Command.openOnly then + else if k == ``Parser.Command.openOnly then elabOpenOnly body - else if k == `Lean.Parser.Command.openHiding then + else if k == ``Parser.Command.openHiding then elabOpenHiding body else elabOpenRenaming body @@ -598,9 +599,9 @@ unsafe def elabEvalUnsafe : CommandElab := fun stx => do let elabMetaEval : CommandElabM Unit := runTermElabM (some n) fun _ => do let e ← Term.elabTerm term none Term.synthesizeSyntheticMVarsNoPostponing - let e ← withLocalDeclD `env (mkConst `Lean.Environment) fun env => - withLocalDeclD `opts (mkConst `Lean.Options) fun opts => do - let e ← mkAppM `Lean.runMetaEval #[env, opts, e]; + let e ← withLocalDeclD `env (mkConst ``Lean.Environment) fun env => + withLocalDeclD `opts (mkConst ``Lean.Options) fun opts => do + let e ← mkAppM ``Lean.runMetaEval #[env, opts, e]; mkLambdaFVars #[env, opts] e let env ← getEnv let opts ← getOptions @@ -616,7 +617,7 @@ unsafe def elabEvalUnsafe : CommandElab := fun stx => do let e ← Term.elabTerm term none let e := mkSimpleThunk e Term.synthesizeSyntheticMVarsNoPostponing - let e ← mkAppM `Lean.runEval #[e] + let e ← mkAppM ``Lean.runEval #[e] let env ← getEnv let act ← try addAndCompile e; evalConst (IO (String × Except IO.Error Unit)) n finally setEnv env let (out, res) ← liftM (m := IO) act @@ -624,7 +625,7 @@ unsafe def elabEvalUnsafe : CommandElab := fun stx => do match res with | Except.error e => throwError e.toString | Except.ok _ => pure () - if (← getEnv).contains `Lean.MetaEval then do + if (← getEnv).contains ``Lean.MetaEval then do elabMetaEval else elabEval diff --git a/stage0/src/Lean/Elab/DefView.lean b/stage0/src/Lean/Elab/DefView.lean index 75ab1e66f8..20a86b2744 100644 --- a/stage0/src/Lean/Elab/DefView.lean +++ b/stage0/src/Lean/Elab/DefView.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ import Std.ShareCommon +import Lean.Parser.Command import Lean.Util.CollectLevelParams import Lean.Util.FoldConsts import Lean.Elab.CollectFVars @@ -68,12 +69,12 @@ namespace MkInstanceName -- Table for `mkInstanceName` private def kindReplacements : NameMap String := Std.RBMap.ofList [ - (`Lean.Parser.Term.depArrow, "DepArrow"), - (`Lean.Parser.Term.«forall», "Forall"), - (`Lean.Parser.Term.arrow, "Arrow"), - (`Lean.Parser.Term.prop, "Prop"), - (`Lean.Parser.Term.sort, "Sort"), - (`Lean.Parser.Term.type, "Type") + (``Parser.Term.depArrow, "DepArrow"), + (``Parser.Term.«forall», "Forall"), + (``Parser.Term.arrow, "Arrow"), + (``Parser.Term.prop, "Prop"), + (``Parser.Term.sort, "Sort"), + (``Parser.Term.type, "Type") ] abbrev M := StateRefT String CommandElabM @@ -128,7 +129,7 @@ def mkDefViewOfConstant (modifiers : Modifiers) (stx : Syntax) : CommandElabM De | some val => pure val | none => let val ← `(arbitrary) - pure $ Syntax.node `Lean.Parser.Command.declValSimple #[ mkAtomFrom stx ":=", val ] + pure $ Syntax.node ``Parser.Command.declValSimple #[ mkAtomFrom stx ":=", val ] return { ref := stx, kind := DefKind.opaque, modifiers := modifiers, declId := stx.getArg 1, binders := binders, type? := some type, value := val @@ -143,7 +144,7 @@ def mkDefViewOfInstance (modifiers : Modifiers) (stx : Syntax) : CommandElabM De | some declId => pure declId | none => let id ← MkInstanceName.main type - pure <| Syntax.node `Lean.Parser.Command.declId #[mkIdentFrom stx id, mkNullNode] + pure <| Syntax.node ``Parser.Command.declId #[mkIdentFrom stx id, mkNullNode] return { ref := stx, kind := DefKind.def, modifiers := modifiers, declId := declId, binders := binders, type? := type, value := stx[4] @@ -153,32 +154,32 @@ def mkDefViewOfExample (modifiers : Modifiers) (stx : Syntax) : DefView := -- parser! "example " >> declSig >> declVal let (binders, type) := expandDeclSig (stx.getArg 1) let id := mkIdentFrom stx `_example - let declId := Syntax.node `Lean.Parser.Command.declId #[id, mkNullNode] + let declId := Syntax.node ``Parser.Command.declId #[id, mkNullNode] { ref := stx, kind := DefKind.example, modifiers := modifiers, declId := declId, binders := binders, type? := some type, value := stx.getArg 2 } def isDefLike (stx : Syntax) : Bool := let declKind := stx.getKind - declKind == `Lean.Parser.Command.«abbrev» || - declKind == `Lean.Parser.Command.«def» || - declKind == `Lean.Parser.Command.«theorem» || - declKind == `Lean.Parser.Command.«constant» || - declKind == `Lean.Parser.Command.«instance» || - declKind == `Lean.Parser.Command.«example» + declKind == ``Parser.Command.«abbrev» || + declKind == ``Parser.Command.«def» || + declKind == ``Parser.Command.«theorem» || + declKind == ``Parser.Command.«constant» || + declKind == ``Parser.Command.«instance» || + declKind == ``Parser.Command.«example» def mkDefView (modifiers : Modifiers) (stx : Syntax) : CommandElabM DefView := let declKind := stx.getKind - if declKind == `Lean.Parser.Command.«abbrev» then + if declKind == ``Parser.Command.«abbrev» then pure $ mkDefViewOfAbbrev modifiers stx - else if declKind == `Lean.Parser.Command.«def» then + else if declKind == ``Parser.Command.«def» then pure $ mkDefViewOfDef modifiers stx - else if declKind == `Lean.Parser.Command.«theorem» then + else if declKind == ``Parser.Command.«theorem» then pure $ mkDefViewOfTheorem modifiers stx - else if declKind == `Lean.Parser.Command.«constant» then + else if declKind == ``Parser.Command.«constant» then mkDefViewOfConstant modifiers stx - else if declKind == `Lean.Parser.Command.«instance» then + else if declKind == ``Parser.Command.«instance» then mkDefViewOfInstance modifiers stx - else if declKind == `Lean.Parser.Command.«example» then + else if declKind == ``Parser.Command.«example» then pure $ mkDefViewOfExample modifiers stx else throwError "unexpected kind of definition" diff --git a/stage0/src/Lean/Elab/Structure.lean b/stage0/src/Lean/Elab/Structure.lean index 56008b7041..5652e709c5 100644 --- a/stage0/src/Lean/Elab/Structure.lean +++ b/stage0/src/Lean/Elab/Structure.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +import Lean.Parser.Command import Lean.Meta.Closure import Lean.Elab.Command import Lean.Elab.DeclModifiers @@ -146,14 +147,14 @@ private def expandFields (structStx : Syntax) (structModifiers : Modifiers) (str let fieldBinders := if structStx[5].isNone then #[] else structStx[5][2][0].getArgs fieldBinders.foldlM (init := #[]) fun (views : Array StructFieldView) fieldBinder => withRef fieldBinder do let mut fieldBinder := fieldBinder - if fieldBinder.getKind == `Lean.Parser.Command.structSimpleBinder then - fieldBinder := Syntax.node `Lean.Parser.Command.structExplicitBinder + if fieldBinder.getKind == ``Parser.Command.structSimpleBinder then + fieldBinder := Syntax.node ``Parser.Command.structExplicitBinder #[ fieldBinder[0], mkAtomFrom fieldBinder "(", fieldBinder[1], fieldBinder[2], fieldBinder[3], fieldBinder[4], mkAtomFrom fieldBinder ")" ] let k := fieldBinder.getKind let binfo ← - if k == `Lean.Parser.Command.structExplicitBinder then pure BinderInfo.default - else if k == `Lean.Parser.Command.structImplicitBinder then pure BinderInfo.implicit - else if k == `Lean.Parser.Command.structInstBinder then pure BinderInfo.instImplicit + if k == ``Parser.Command.structExplicitBinder then pure BinderInfo.default + else if k == ``Parser.Command.structImplicitBinder then pure BinderInfo.implicit + else if k == ``Parser.Command.structInstBinder then pure BinderInfo.instImplicit else throwError "unexpected kind of structure field" let fieldModifiers ← elabModifiers fieldBinder[0] checkValidFieldModifier fieldModifiers @@ -519,7 +520,7 @@ def structCtor := parser! try (declModifiers >> ident >> optional infe -/ def elabStructure (modifiers : Modifiers) (stx : Syntax) : CommandElabM Unit := do checkValidInductiveModifier modifiers - let isClass := stx[0].getKind == `Lean.Parser.Command.classTk + let isClass := stx[0].getKind == ``Parser.Command.classTk let modifiers := if isClass then modifiers.addAttribute { name := `class } else modifiers let declId := stx[1] let params := stx[2].getArgs diff --git a/stage0/src/Lean/Elab/Syntax.lean b/stage0/src/Lean/Elab/Syntax.lean index 92dd3946e5..d23e9b9ac8 100644 --- a/stage0/src/Lean/Elab/Syntax.lean +++ b/stage0/src/Lean/Elab/Syntax.lean @@ -505,15 +505,6 @@ def expandMacroArgIntoSyntaxItem (stx : Syntax) : MacroM Syntax := else Macro.throwUnsupported -/- Convert `macro` head into a `syntax` command item -/ -def expandMacroHeadIntoSyntaxItem (stx : Syntax) : MacroM Syntax := - if stx.isIdent then - let info := stx.getHeadInfo.getD {} - let id := stx.getId - pure $ Syntax.node `Lean.Parser.Syntax.atom #[Syntax.mkStrLit (toString id) info] - else - expandMacroArgIntoSyntaxItem stx - /- Convert `macro` arg into a pattern element -/ def expandMacroArgIntoPattern (stx : Syntax) : MacroM Syntax := let k := stx.getKind @@ -525,13 +516,6 @@ def expandMacroArgIntoPattern (stx : Syntax) : MacroM Syntax := else Macro.throwUnsupported -/- Convert `macro` head into a pattern element -/ -def expandMacroHeadIntoPattern (stx : Syntax) : MacroM Syntax := - if stx.isIdent then - pure $ mkAtomFrom stx (toString stx.getId) - else - expandMacroArgIntoPattern stx - def expandOptPrio (stx : Syntax) : Nat := if stx.isNone then 0 @@ -545,13 +529,13 @@ def expandMacro (currNamespace : Name) (stx : Syntax) : CommandElabM Syntax := d let args := stx[4].getArgs let cat := stx[6] -- build parser - let stxPart ← liftMacroM <| expandMacroHeadIntoSyntaxItem head + let stxPart ← liftMacroM <| expandMacroArgIntoSyntaxItem head let stxParts ← liftMacroM <| args.mapM expandMacroArgIntoSyntaxItem let stxParts := #[stxPart] ++ stxParts -- kind let kind ← mkNameFromParserSyntax cat.getId (mkNullNode stxParts) -- build macro rules - let patHead ← liftMacroM <| expandMacroHeadIntoPattern head + let patHead ← liftMacroM <| expandMacroArgIntoPattern head let patArgs ← liftMacroM <| args.mapM expandMacroArgIntoPattern /- The command `syntax [] ...` adds the current namespace to the syntax node kind. So, we must include current namespace when we create a pattern for the following `macro_rules` commands. -/ @@ -595,13 +579,13 @@ def expandElab (currNamespace : Name) (stx : Syntax) : CommandElabM Syntax := do let rhs := stx[9] let catName := cat.getId -- build parser - let stxPart ← liftMacroM <| expandMacroHeadIntoSyntaxItem head + let stxPart ← liftMacroM <| expandMacroArgIntoSyntaxItem head let stxParts ← liftMacroM <| args.mapM expandMacroArgIntoSyntaxItem let stxParts := #[stxPart] ++ stxParts -- kind let kind ← mkNameFromParserSyntax cat.getId (mkNullNode stxParts) -- build pattern for `martch_syntax - let patHead ← liftMacroM <| expandMacroHeadIntoPattern head + let patHead ← liftMacroM <| expandMacroArgIntoPattern head let patArgs ← liftMacroM <| args.mapM expandMacroArgIntoPattern let pat := Syntax.node (currNamespace ++ kind) (#[patHead] ++ patArgs) let kindId := mkIdentFrom ref kind diff --git a/stage0/src/Lean/Elab/Tactic/Binders.lean b/stage0/src/Lean/Elab/Tactic/Binders.lean index 1d760cdc87..b892e9f05a 100644 --- a/stage0/src/Lean/Elab/Tactic/Binders.lean +++ b/stage0/src/Lean/Elab/Tactic/Binders.lean @@ -11,7 +11,7 @@ private def liftTermBinderSyntax : Macro := fun stx => do match stx.getKind with | Name.str (Name.str p "Tactic" _) s _ => let kind := Name.mkStr (Name.mkStr p "Term") s - let termStx := Syntax.node kind (stx.getArgs ++ #[mkAtomFrom stx "; ", hole]) + let termStx := Syntax.node kind (stx.getArgs ++ #[mkNullNode #[mkAtomFrom stx "; "], hole]) `(tactic| refine $termStx) | _ => Macro.throwError "unexpected binder syntax" diff --git a/stage0/src/Lean/Elab/Tactic/Induction.lean b/stage0/src/Lean/Elab/Tactic/Induction.lean index 206897b6f0..54b5b59af5 100644 --- a/stage0/src/Lean/Elab/Tactic/Induction.lean +++ b/stage0/src/Lean/Elab/Tactic/Induction.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ +import Lean.Parser.Term import Lean.Meta.RecursorInfo import Lean.Meta.CollectMVars import Lean.Meta.Tactic.ElimInfo @@ -32,7 +33,7 @@ private def getAltDArrow (alt : Syntax) : Syntax := -- Return true if `stx` is a term occurring in the RHS of the induction/cases tactic def isHoleRHS (rhs : Syntax) : Bool := - rhs.isOfKind `Lean.Parser.Term.syntheticHole || rhs.isOfKind `Lean.Parser.Term.hole + rhs.isOfKind ``Parser.Term.syntheticHole || rhs.isOfKind ``Parser.Term.hole def evalAlt (mvarId : MVarId) (alt : Syntax) (remainingGoals : Array MVarId) : TacticM (Array MVarId) := withRef (getAltDArrow alt) do -- using `=>`'s position for error messages diff --git a/stage0/src/Lean/Elab/Tactic/Location.lean b/stage0/src/Lean/Elab/Tactic/Location.lean index af7f9a4406..3ab5916f59 100644 --- a/stage0/src/Lean/Elab/Tactic/Location.lean +++ b/stage0/src/Lean/Elab/Tactic/Location.lean @@ -21,8 +21,8 @@ def location := parser! "at " >> (locationWildcard <|> locationTarget <| -/ def expandLocation (stx : Syntax) : Location := let arg := stx[1] - if arg.getKind == `Lean.Parser.Tactic.locationWildcard then Location.wildcard - else if arg.getKind == `Lean.Parser.Tactic.locationTarget then Location.target + if arg.getKind == ``Parser.Tactic.locationWildcard then Location.wildcard + else if arg.getKind == ``Parser.Tactic.locationTarget then Location.target else Location.localDecls $ arg[0].getArgs.map fun stx => stx.getId def expandOptLocation (stx : Syntax) : Location := diff --git a/stage0/src/Lean/Elab/Tactic/Match.lean b/stage0/src/Lean/Elab/Tactic/Match.lean index c4e9ebb9ba..930c5d7fb6 100644 --- a/stage0/src/Lean/Elab/Tactic/Match.lean +++ b/stage0/src/Lean/Elab/Tactic/Match.lean @@ -3,6 +3,7 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ +import Lean.Parser.Term import Lean.Elab.Match import Lean.Elab.Tactic.Basic import Lean.Elab.Tactic.Induction @@ -17,11 +18,11 @@ private def mkAuxiliaryMatchTermAux (parentTag : Name) (matchTac : Syntax) : Sta let matchAlts := matchTac[4] let alts := matchAlts[1].getArgs let newAlts ← alts.mapSepElemsM fun alt => do - let alt := alt.setKind `Lean.Parser.Term.matchAlt + let alt := alt.setKind ``Parser.Term.matchAlt let holeOrTacticSeq := alt[2] - if holeOrTacticSeq.isOfKind `Lean.Parser.Term.syntheticHole then + if holeOrTacticSeq.isOfKind ``Parser.Term.syntheticHole then pure alt - else if holeOrTacticSeq.isOfKind `Lean.Parser.Term.hole then + else if holeOrTacticSeq.isOfKind ``Parser.Term.hole then let s ← get let tag := if alts.size > 1 then parentTag ++ (`match).appendIndexAfter s.nextIdx else parentTag let holeName := mkIdentFrom holeOrTacticSeq tag @@ -34,7 +35,7 @@ private def mkAuxiliaryMatchTermAux (parentTag : Name) (matchTac : Syntax) : Sta let newCase ← `(tactic| case $newHoleId => $holeOrTacticSeq:tacticSeq ) modify fun s => { s with cases := s.cases.push newCase } pure $ alt.setArg 2 newHole - let result := matchTac.setKind `Lean.Parser.Term.«match» + let result := matchTac.setKind ``Parser.Term.«match» let result := result.setArg 4 (matchAlts.setArg 1 (mkNullNode newAlts)) pure result diff --git a/stage0/src/Lean/Elab/Tactic/Rewrite.lean b/stage0/src/Lean/Elab/Tactic/Rewrite.lean index 6546e1a427..8d0c2436eb 100644 --- a/stage0/src/Lean/Elab/Tactic/Rewrite.lean +++ b/stage0/src/Lean/Elab/Tactic/Rewrite.lean @@ -14,12 +14,12 @@ open Meta @[builtinMacro Lean.Parser.Tactic.rewriteSeq] def expandRewriteTactic : Macro := fun stx => let seq := stx[1][1].getSepArgs let loc := stx[2] - return mkNullNode <| seq.map fun rwRule => Syntax.node `Lean.Parser.Tactic.rewrite #[mkAtomFrom rwRule "rewrite ", rwRule, loc] + return mkNullNode <| seq.map fun rwRule => Syntax.node ``Parser.Tactic.rewrite #[mkAtomFrom rwRule "rewrite ", rwRule, loc] @[builtinMacro Lean.Parser.Tactic.erewriteSeq] def expandERewriteTactic : Macro := fun stx => let seq := stx[1][1].getSepArgs let loc := stx[2] - return mkNullNode <| seq.map fun rwRule => Syntax.node `Lean.Parser.Tactic.erewrite #[mkAtomFrom rwRule "erewrite ", rwRule, loc] + return mkNullNode <| seq.map fun rwRule => Syntax.node ``Parser.Tactic.erewrite #[mkAtomFrom rwRule "erewrite ", rwRule, loc] def rewriteTarget (stx : Syntax) (symm : Bool) (mode : TransparencyMode) : TacticM Unit := do let (g, gs) ← getMainGoal diff --git a/stage0/src/Lean/Parser/Syntax.lean b/stage0/src/Lean/Parser/Syntax.lean index ef5d19a3c5..1dfcfbf2f7 100644 --- a/stage0/src/Lean/Parser/Syntax.lean +++ b/stage0/src/Lean/Parser/Syntax.lean @@ -69,7 +69,7 @@ def optKindPrio : Parser := optional ("[" >> (parserKindPrio <|> parserKind <|> @[builtinCommandParser] def syntaxCat := parser! "declare_syntax_cat " >> ident def macroArgSimple := parser! ident >> checkNoWsBefore "no space before ':'" >> ":" >> syntaxParser maxPrec def macroArg := strLit <|> atomic macroArgSimple -def macroHead := macroArg <|> ident +def macroHead := macroArg def macroTailTactic : Parser := atomic (" : " >> identEq "tactic") >> darrow >> ("`(" >> toggleInsideQuot Tactic.seq1 >> ")" <|> termParser) def macroTailCommand : Parser := atomic (" : " >> identEq "command") >> darrow >> ("`(" >> toggleInsideQuot (many1Unbox commandParser) >> ")" <|> termParser) def macroTailDefault : Parser := atomic (" : " >> ident) >> darrow >> (("`(" >> toggleInsideQuot (categoryParserOfStack 2) >> ")") <|> termParser) diff --git a/stage0/src/Lean/PrettyPrinter/Basic.lean b/stage0/src/Lean/PrettyPrinter/Basic.lean index 11ce863f89..b94542cc7a 100644 --- a/stage0/src/Lean/PrettyPrinter/Basic.lean +++ b/stage0/src/Lean/PrettyPrinter/Basic.lean @@ -19,7 +19,7 @@ unsafe def runForNodeKind {α} (attr : KeyedDeclsAttribute α) (k : SyntaxNodeKi | _ => -- assume `k` is from a `ParserDescr`, in which case we assume it's also the declaration name let info ← getConstInfo k - if info.type.isConstOf `Lean.ParserDescr || info.type.isConstOf `Lean.TrailingParserDescr then + if info.type.isConstOf ``ParserDescr || info.type.isConstOf ``TrailingParserDescr then let d ← evalConst ParserDescr k interp d else diff --git a/stage0/stdlib/Lean/Elab/BuiltinNotation.c b/stage0/stdlib/Lean/Elab/BuiltinNotation.c index e7cceba32c..0d0e4ab2a6 100644 --- a/stage0/stdlib/Lean/Elab/BuiltinNotation.c +++ b/stage0/stdlib/Lean/Elab/BuiltinNotation.c @@ -47,7 +47,6 @@ lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_expandCDot_ lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__4; lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__36; lean_object* l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_nullKind; lean_object* l_Lean_Elab_Term_expandAssert___closed__10; lean_object* l___regBuiltin_Lean_Elab_Term_elabNativeRefl___closed__2; lean_object* l_Lean_Elab_Term_expandEmptyC___closed__2; @@ -74,7 +73,6 @@ extern lean_object* l_myMacro____x40_Init_Notation___hyg_12803____closed__18; lean_object* l_Lean_Elab_Term_elabNativeRefl___lambda__1___closed__3; lean_object* l_Lean_Elab_Term_elabParen(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instToExprBool___closed__1; -extern lean_object* l_myMacro____x40_Init_Notation___hyg_12803____closed__15; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l_Lean_Elab_Term_expandSuffices_match__7(lean_object*); lean_object* l_Lean_Elab_Term_elabPanic___closed__3; @@ -395,7 +393,6 @@ lean_object* l_Lean_Elab_Term_elabAnonymousCtor_match__2(lean_object*); lean_object* l_Lean_Meta_matchEq_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_termElabAttribute; extern lean_object* l_myMacro____x40_Init_Data_ToString_Macro___hyg_23____closed__13; -lean_object* l_Lean_mkAtomFrom(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabStateRefT___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instToExprBool___lambda__1___closed__2; lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__25; @@ -419,7 +416,6 @@ lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParser lean_object* l___regBuiltin_Lean_Elab_Term_expandShow(lean_object*); extern lean_object* l_Lean_Elab_macroAttribute; lean_object* l_Lean_Elab_Term_elabParserMacro(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Syntax_setArg(lean_object*, lean_object*, lean_object*); lean_object* lean_environment_main_module(lean_object*); extern lean_object* l_Lean_instQuoteBool___closed__2; lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__5; @@ -1871,432 +1867,447 @@ return x_3; lean_object* l_Lean_Elab_Term_expandHave(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; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_4 = l_myMacro____x40_Init_Notation___hyg_12803____closed__15; -x_5 = l_Lean_mkAtomFrom(x_1, x_4); -x_6 = l_Lean_mkOptionalNode___closed__2; -x_7 = lean_array_push(x_6, x_5); -x_8 = l_Lean_nullKind; -x_9 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_7); -x_10 = lean_unsigned_to_nat(4u); -x_11 = l_Lean_Syntax_setArg(x_1, x_10, x_9); -x_12 = l_Lean_Elab_Term_expandHave___closed__1; -lean_inc(x_11); -x_13 = l_Lean_Syntax_isOfKind(x_11, x_12); -if (x_13 == 0) +lean_object* x_4; uint8_t x_5; +x_4 = l_Lean_Elab_Term_expandHave___closed__1; +lean_inc(x_1); +x_5 = l_Lean_Syntax_isOfKind(x_1, x_4); +if (x_5 == 0) { -lean_object* x_14; lean_object* x_15; -lean_dec(x_11); -x_14 = lean_box(1); -x_15 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_3); -return x_15; +lean_object* x_6; lean_object* x_7; +lean_dec(x_1); +x_6 = lean_box(1); +x_7 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_3); +return x_7; } else { -lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_16 = lean_unsigned_to_nat(1u); -x_17 = l_Lean_Syntax_getArg(x_11, x_16); -x_18 = l_Lean_Syntax_isNone(x_17); +lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_8 = lean_unsigned_to_nat(1u); +x_9 = l_Lean_Syntax_getArg(x_1, x_8); +x_10 = l_Lean_Syntax_isNone(x_9); +if (x_10 == 0) +{ +lean_object* x_11; uint8_t x_12; +x_11 = l_Lean_nullKind___closed__2; +lean_inc(x_9); +x_12 = l_Lean_Syntax_isOfKind(x_9, x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +lean_dec(x_9); +lean_dec(x_1); +x_13 = lean_box(1); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_3); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_15 = l_Lean_Syntax_getArgs(x_9); +x_16 = lean_array_get_size(x_15); +lean_dec(x_15); +x_17 = lean_unsigned_to_nat(2u); +x_18 = lean_nat_dec_eq(x_16, x_17); +lean_dec(x_16); if (x_18 == 0) { -lean_object* x_19; uint8_t x_20; -x_19 = l_Lean_nullKind___closed__2; -lean_inc(x_17); -x_20 = l_Lean_Syntax_isOfKind(x_17, x_19); -if (x_20 == 0) -{ -lean_object* x_21; lean_object* x_22; -lean_dec(x_17); -lean_dec(x_11); -x_21 = lean_box(1); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_3); -return x_22; +lean_object* x_19; lean_object* x_20; +lean_dec(x_9); +lean_dec(x_1); +x_19 = lean_box(1); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_3); +return x_20; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; -x_23 = l_Lean_Syntax_getArgs(x_17); -x_24 = lean_array_get_size(x_23); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_21 = lean_unsigned_to_nat(0u); +x_22 = l_Lean_Syntax_getArg(x_9, x_21); +lean_dec(x_9); +x_23 = l_Lean_Syntax_getArg(x_1, x_17); +x_24 = lean_unsigned_to_nat(3u); +x_25 = l_Lean_Syntax_getArg(x_1, x_24); +x_26 = l_Lean_Elab_Term_expandShow___closed__3; +lean_inc(x_25); +x_27 = l_Lean_Syntax_isOfKind(x_25, x_26); +if (x_27 == 0) +{ +lean_object* x_28; uint8_t x_29; +x_28 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_15583____closed__4; +lean_inc(x_25); +x_29 = l_Lean_Syntax_isOfKind(x_25, x_28); +if (x_29 == 0) +{ +lean_object* x_30; uint8_t x_31; +x_30 = l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__2; +lean_inc(x_25); +x_31 = l_Lean_Syntax_isOfKind(x_25, x_30); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; +lean_dec(x_25); lean_dec(x_23); -x_25 = lean_unsigned_to_nat(2u); -x_26 = lean_nat_dec_eq(x_24, x_25); -lean_dec(x_24); -if (x_26 == 0) -{ -lean_object* x_27; lean_object* x_28; -lean_dec(x_17); -lean_dec(x_11); -x_27 = lean_box(1); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_3); -return x_28; +lean_dec(x_22); +lean_dec(x_1); +x_32 = lean_box(1); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_3); +return x_33; } 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; uint8_t x_35; -x_29 = lean_unsigned_to_nat(0u); -x_30 = l_Lean_Syntax_getArg(x_17, x_29); -lean_dec(x_17); -x_31 = l_Lean_Syntax_getArg(x_11, x_25); -x_32 = lean_unsigned_to_nat(3u); -x_33 = l_Lean_Syntax_getArg(x_11, x_32); -x_34 = l_Lean_Elab_Term_expandShow___closed__3; -lean_inc(x_33); -x_35 = l_Lean_Syntax_isOfKind(x_33, x_34); -if (x_35 == 0) +lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_34 = l_Lean_Syntax_getArg(x_25, x_8); +lean_dec(x_25); +x_35 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_13592____closed__3; +lean_inc(x_34); +x_36 = l_Lean_Syntax_isOfKind(x_34, x_35); +if (x_36 == 0) { -lean_object* x_36; uint8_t x_37; -x_36 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_15583____closed__4; -lean_inc(x_33); -x_37 = l_Lean_Syntax_isOfKind(x_33, x_36); -if (x_37 == 0) -{ -lean_object* x_38; uint8_t x_39; -x_38 = l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__2; -lean_inc(x_33); -x_39 = l_Lean_Syntax_isOfKind(x_33, x_38); -if (x_39 == 0) -{ -lean_object* x_40; lean_object* x_41; -lean_dec(x_33); -lean_dec(x_31); -lean_dec(x_30); -lean_dec(x_11); -x_40 = lean_box(1); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_3); -return x_41; +lean_object* x_37; lean_object* x_38; +lean_dec(x_34); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_1); +x_37 = lean_box(1); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_3); +return x_38; } else { -lean_object* x_42; lean_object* x_43; uint8_t x_44; -x_42 = l_Lean_Syntax_getArg(x_33, x_16); -lean_dec(x_33); -x_43 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_13592____closed__3; -lean_inc(x_42); -x_44 = l_Lean_Syntax_isOfKind(x_42, x_43); -if (x_44 == 0) +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = lean_unsigned_to_nat(4u); +x_40 = l_Lean_Syntax_getArg(x_1, x_39); +x_41 = l_Lean_Syntax_isNone(x_40); +if (x_41 == 0) { -lean_object* x_45; lean_object* x_46; -lean_dec(x_42); -lean_dec(x_31); -lean_dec(x_30); -lean_dec(x_11); -x_45 = lean_box(1); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_3); -return x_46; +uint8_t x_42; +lean_inc(x_40); +x_42 = l_Lean_Syntax_isOfKind(x_40, x_11); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; +lean_dec(x_40); +lean_dec(x_34); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_1); +x_43 = lean_box(1); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_3); +return x_44; } else { -lean_object* x_47; uint8_t x_48; -x_47 = l_Lean_Syntax_getArg(x_11, x_10); -x_48 = l_Lean_Syntax_isNone(x_47); -if (x_48 == 0) +lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_45 = l_Lean_Syntax_getArgs(x_40); +lean_dec(x_40); +x_46 = lean_array_get_size(x_45); +lean_dec(x_45); +x_47 = lean_nat_dec_eq(x_46, x_8); +lean_dec(x_46); +if (x_47 == 0) { -uint8_t x_49; -lean_inc(x_47); -x_49 = l_Lean_Syntax_isOfKind(x_47, x_19); -if (x_49 == 0) -{ -lean_object* x_50; lean_object* x_51; -lean_dec(x_47); -lean_dec(x_42); -lean_dec(x_31); -lean_dec(x_30); -lean_dec(x_11); -x_50 = lean_box(1); -x_51 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_3); -return x_51; +lean_object* x_48; lean_object* x_49; +lean_dec(x_34); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_1); +x_48 = lean_box(1); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_3); +return x_49; } else { -lean_object* x_52; lean_object* x_53; uint8_t x_54; -x_52 = l_Lean_Syntax_getArgs(x_47); -lean_dec(x_47); -x_53 = lean_array_get_size(x_52); -lean_dec(x_52); -x_54 = lean_nat_dec_eq(x_53, x_16); -lean_dec(x_53); -if (x_54 == 0) -{ -lean_object* x_55; lean_object* x_56; -lean_dec(x_42); -lean_dec(x_31); -lean_dec(x_30); -lean_dec(x_11); -x_55 = lean_box(1); -x_56 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_3); -return x_56; -} -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_57 = lean_unsigned_to_nat(5u); -x_58 = l_Lean_Syntax_getArg(x_11, x_57); -lean_dec(x_11); -x_59 = l_Lean_Syntax_mkApp___closed__1; -x_60 = lean_array_push(x_59, x_30); -x_61 = l_myMacro____x40_Init_Notation___hyg_12176____closed__10; -x_62 = lean_array_push(x_60, x_61); -x_63 = l_Array_empty___closed__1; -x_64 = l_Array_appendCore___rarg(x_63, x_62); -lean_dec(x_62); -x_65 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_65, 0, x_19); -lean_ctor_set(x_65, 1, x_64); -x_66 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_15583____closed__2; -x_67 = lean_array_push(x_66, x_65); -x_68 = lean_array_push(x_67, x_31); -x_69 = l_Lean_Elab_Term_expandShow___closed__11; -x_70 = lean_array_push(x_69, x_42); -x_71 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_71, 0, x_38); -lean_ctor_set(x_71, 1, x_70); -x_72 = l_Lean_Elab_Term_expandShow___closed__8; -x_73 = lean_array_push(x_72, x_71); -x_74 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_74, 0, x_34); -lean_ctor_set(x_74, 1, x_73); -x_75 = lean_array_push(x_68, x_74); -x_76 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; -x_77 = lean_array_push(x_75, x_76); -x_78 = lean_array_push(x_77, x_58); -x_79 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_79, 0, x_12); -lean_ctor_set(x_79, 1, x_78); -x_80 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_80, 0, x_79); -lean_ctor_set(x_80, 1, x_3); -return x_80; +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_50 = lean_unsigned_to_nat(5u); +x_51 = l_Lean_Syntax_getArg(x_1, x_50); +lean_dec(x_1); +x_52 = l_Lean_Syntax_mkApp___closed__1; +x_53 = lean_array_push(x_52, x_22); +x_54 = l_myMacro____x40_Init_Notation___hyg_12176____closed__10; +x_55 = lean_array_push(x_53, x_54); +x_56 = l_Array_empty___closed__1; +x_57 = l_Array_appendCore___rarg(x_56, x_55); +lean_dec(x_55); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_11); +lean_ctor_set(x_58, 1, x_57); +x_59 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_15583____closed__2; +x_60 = lean_array_push(x_59, x_58); +x_61 = lean_array_push(x_60, x_23); +x_62 = l_Lean_Elab_Term_expandShow___closed__11; +x_63 = lean_array_push(x_62, x_34); +x_64 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_64, 0, x_30); +lean_ctor_set(x_64, 1, x_63); +x_65 = l_Lean_Elab_Term_expandShow___closed__8; +x_66 = lean_array_push(x_65, x_64); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_26); +lean_ctor_set(x_67, 1, x_66); +x_68 = lean_array_push(x_61, x_67); +x_69 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; +x_70 = lean_array_push(x_68, x_69); +x_71 = lean_array_push(x_70, x_51); +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_4); +lean_ctor_set(x_72, 1, x_71); +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_3); +return x_73; } } } else { -lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -lean_dec(x_47); -x_81 = lean_unsigned_to_nat(5u); -x_82 = l_Lean_Syntax_getArg(x_11, x_81); -lean_dec(x_11); -x_83 = l_Lean_Syntax_mkApp___closed__1; -x_84 = lean_array_push(x_83, x_30); -x_85 = l_myMacro____x40_Init_Notation___hyg_12176____closed__10; -x_86 = lean_array_push(x_84, x_85); -x_87 = l_Array_empty___closed__1; -x_88 = l_Array_appendCore___rarg(x_87, x_86); -lean_dec(x_86); -x_89 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_89, 0, x_19); -lean_ctor_set(x_89, 1, x_88); -x_90 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_15583____closed__2; -x_91 = lean_array_push(x_90, x_89); -x_92 = lean_array_push(x_91, x_31); -x_93 = l_Lean_Elab_Term_expandShow___closed__11; -x_94 = lean_array_push(x_93, x_42); -x_95 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_95, 0, x_38); -lean_ctor_set(x_95, 1, x_94); -x_96 = l_Lean_Elab_Term_expandShow___closed__8; -x_97 = lean_array_push(x_96, x_95); -x_98 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_98, 0, x_34); -lean_ctor_set(x_98, 1, x_97); -x_99 = lean_array_push(x_92, x_98); -x_100 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; -x_101 = lean_array_push(x_99, x_100); -x_102 = lean_array_push(x_101, x_82); -x_103 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_103, 0, x_12); -lean_ctor_set(x_103, 1, x_102); -x_104 = lean_alloc_ctor(0, 2, 0); +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +lean_dec(x_40); +x_74 = lean_unsigned_to_nat(5u); +x_75 = l_Lean_Syntax_getArg(x_1, x_74); +lean_dec(x_1); +x_76 = l_Lean_Syntax_mkApp___closed__1; +x_77 = lean_array_push(x_76, x_22); +x_78 = l_myMacro____x40_Init_Notation___hyg_12176____closed__10; +x_79 = lean_array_push(x_77, x_78); +x_80 = l_Array_empty___closed__1; +x_81 = l_Array_appendCore___rarg(x_80, x_79); +lean_dec(x_79); +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_11); +lean_ctor_set(x_82, 1, x_81); +x_83 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_15583____closed__2; +x_84 = lean_array_push(x_83, x_82); +x_85 = lean_array_push(x_84, x_23); +x_86 = l_Lean_Elab_Term_expandShow___closed__11; +x_87 = lean_array_push(x_86, x_34); +x_88 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_30); +lean_ctor_set(x_88, 1, x_87); +x_89 = l_Lean_Elab_Term_expandShow___closed__8; +x_90 = lean_array_push(x_89, x_88); +x_91 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_91, 0, x_26); +lean_ctor_set(x_91, 1, x_90); +x_92 = lean_array_push(x_85, x_91); +x_93 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; +x_94 = lean_array_push(x_92, x_93); +x_95 = lean_array_push(x_94, x_75); +x_96 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_96, 0, x_4); +lean_ctor_set(x_96, 1, x_95); +x_97 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_97, 0, x_96); +lean_ctor_set(x_97, 1, x_3); +return x_97; +} +} +} +} +else +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; +x_98 = l_Lean_Syntax_getArg(x_25, x_8); +lean_dec(x_25); +x_99 = lean_unsigned_to_nat(4u); +x_100 = l_Lean_Syntax_getArg(x_1, x_99); +x_101 = l_Lean_Syntax_isNone(x_100); +if (x_101 == 0) +{ +uint8_t x_102; +lean_inc(x_100); +x_102 = l_Lean_Syntax_isOfKind(x_100, x_11); +if (x_102 == 0) +{ +lean_object* x_103; lean_object* x_104; +lean_dec(x_100); +lean_dec(x_98); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_1); +x_103 = lean_box(1); +x_104 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_104, 0, x_103); lean_ctor_set(x_104, 1, x_3); return x_104; } -} -} -} else { lean_object* x_105; lean_object* x_106; uint8_t x_107; -x_105 = l_Lean_Syntax_getArg(x_33, x_16); -lean_dec(x_33); -x_106 = l_Lean_Syntax_getArg(x_11, x_10); -x_107 = l_Lean_Syntax_isNone(x_106); +x_105 = l_Lean_Syntax_getArgs(x_100); +lean_dec(x_100); +x_106 = lean_array_get_size(x_105); +lean_dec(x_105); +x_107 = lean_nat_dec_eq(x_106, x_8); +lean_dec(x_106); if (x_107 == 0) { -uint8_t x_108; -lean_inc(x_106); -x_108 = l_Lean_Syntax_isOfKind(x_106, x_19); -if (x_108 == 0) -{ -lean_object* x_109; lean_object* x_110; -lean_dec(x_106); -lean_dec(x_105); -lean_dec(x_31); -lean_dec(x_30); -lean_dec(x_11); -x_109 = lean_box(1); -x_110 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_110, 0, x_109); -lean_ctor_set(x_110, 1, x_3); -return x_110; +lean_object* x_108; lean_object* x_109; +lean_dec(x_98); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_1); +x_108 = lean_box(1); +x_109 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_3); +return x_109; } else { -lean_object* x_111; lean_object* x_112; uint8_t x_113; -x_111 = l_Lean_Syntax_getArgs(x_106); -lean_dec(x_106); -x_112 = lean_array_get_size(x_111); -lean_dec(x_111); -x_113 = lean_nat_dec_eq(x_112, x_16); -lean_dec(x_112); -if (x_113 == 0) -{ -lean_object* x_114; lean_object* x_115; -lean_dec(x_105); -lean_dec(x_31); -lean_dec(x_30); -lean_dec(x_11); -x_114 = lean_box(1); -x_115 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_115, 0, x_114); -lean_ctor_set(x_115, 1, x_3); -return x_115; -} -else -{ -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; -x_116 = lean_unsigned_to_nat(5u); -x_117 = l_Lean_Syntax_getArg(x_11, x_116); -lean_dec(x_11); -x_118 = l_Array_empty___closed__1; -x_119 = lean_array_push(x_118, x_30); -x_120 = l_myMacro____x40_Init_Notation___hyg_12176____closed__22; -x_121 = lean_array_push(x_119, x_120); -x_122 = l_myMacro____x40_Init_Notation___hyg_12176____closed__11; -x_123 = lean_array_push(x_122, x_31); -x_124 = l_Lean_expandExplicitBindersAux_loop___closed__8; -x_125 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_125, 0, x_124); -lean_ctor_set(x_125, 1, x_123); -x_126 = lean_array_push(x_118, x_125); +lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_110 = lean_unsigned_to_nat(5u); +x_111 = l_Lean_Syntax_getArg(x_1, x_110); +lean_dec(x_1); +x_112 = l_Array_empty___closed__1; +x_113 = lean_array_push(x_112, x_22); +x_114 = l_myMacro____x40_Init_Notation___hyg_12176____closed__22; +x_115 = lean_array_push(x_113, x_114); +x_116 = l_myMacro____x40_Init_Notation___hyg_12176____closed__11; +x_117 = lean_array_push(x_116, x_23); +x_118 = l_Lean_expandExplicitBindersAux_loop___closed__8; +x_119 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_119, 0, x_118); +lean_ctor_set(x_119, 1, x_117); +x_120 = lean_array_push(x_112, x_119); +x_121 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_121, 0, x_11); +lean_ctor_set(x_121, 1, x_120); +x_122 = lean_array_push(x_115, x_121); +x_123 = l_myMacro____x40_Init_Notation___hyg_12803____closed__14; +x_124 = lean_array_push(x_122, x_123); +x_125 = lean_array_push(x_124, x_98); +x_126 = l_myMacro____x40_Init_Notation___hyg_12803____closed__8; x_127 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_127, 0, x_19); -lean_ctor_set(x_127, 1, x_126); -x_128 = lean_array_push(x_121, x_127); -x_129 = l_myMacro____x40_Init_Notation___hyg_12803____closed__14; -x_130 = lean_array_push(x_128, x_129); -x_131 = lean_array_push(x_130, x_105); -x_132 = l_myMacro____x40_Init_Notation___hyg_12803____closed__8; -x_133 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_133, 0, x_132); -lean_ctor_set(x_133, 1, x_131); -x_134 = lean_array_push(x_118, x_133); -x_135 = l_myMacro____x40_Init_Notation___hyg_12803____closed__6; -x_136 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_136, 0, x_135); -lean_ctor_set(x_136, 1, x_134); -x_137 = l_Lean_Elab_Term_expandShow___closed__15; -x_138 = lean_array_push(x_137, x_136); -x_139 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; -x_140 = lean_array_push(x_138, x_139); -x_141 = lean_array_push(x_140, x_117); -x_142 = l_Lean_Elab_Term_elabLetDeclCore___closed__7; -x_143 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_143, 0, x_142); -lean_ctor_set(x_143, 1, x_141); -x_144 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_144, 0, x_143); -lean_ctor_set(x_144, 1, x_3); -return x_144; +lean_ctor_set(x_127, 0, x_126); +lean_ctor_set(x_127, 1, x_125); +x_128 = lean_array_push(x_112, x_127); +x_129 = l_myMacro____x40_Init_Notation___hyg_12803____closed__6; +x_130 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_130, 0, x_129); +lean_ctor_set(x_130, 1, x_128); +x_131 = l_Lean_Elab_Term_expandShow___closed__15; +x_132 = lean_array_push(x_131, x_130); +x_133 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; +x_134 = lean_array_push(x_132, x_133); +x_135 = lean_array_push(x_134, x_111); +x_136 = l_Lean_Elab_Term_elabLetDeclCore___closed__7; +x_137 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 1, x_135); +x_138 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_138, 0, x_137); +lean_ctor_set(x_138, 1, x_3); +return x_138; } } } else { -lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; -lean_dec(x_106); -x_145 = lean_unsigned_to_nat(5u); -x_146 = l_Lean_Syntax_getArg(x_11, x_145); -lean_dec(x_11); -x_147 = l_Array_empty___closed__1; -x_148 = lean_array_push(x_147, x_30); -x_149 = l_myMacro____x40_Init_Notation___hyg_12176____closed__22; -x_150 = lean_array_push(x_148, x_149); -x_151 = l_myMacro____x40_Init_Notation___hyg_12176____closed__11; -x_152 = lean_array_push(x_151, x_31); -x_153 = l_Lean_expandExplicitBindersAux_loop___closed__8; -x_154 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_154, 0, x_153); -lean_ctor_set(x_154, 1, x_152); -x_155 = lean_array_push(x_147, x_154); +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; +lean_dec(x_100); +x_139 = lean_unsigned_to_nat(5u); +x_140 = l_Lean_Syntax_getArg(x_1, x_139); +lean_dec(x_1); +x_141 = l_Array_empty___closed__1; +x_142 = lean_array_push(x_141, x_22); +x_143 = l_myMacro____x40_Init_Notation___hyg_12176____closed__22; +x_144 = lean_array_push(x_142, x_143); +x_145 = l_myMacro____x40_Init_Notation___hyg_12176____closed__11; +x_146 = lean_array_push(x_145, x_23); +x_147 = l_Lean_expandExplicitBindersAux_loop___closed__8; +x_148 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_148, 0, x_147); +lean_ctor_set(x_148, 1, x_146); +x_149 = lean_array_push(x_141, x_148); +x_150 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_150, 0, x_11); +lean_ctor_set(x_150, 1, x_149); +x_151 = lean_array_push(x_144, x_150); +x_152 = l_myMacro____x40_Init_Notation___hyg_12803____closed__14; +x_153 = lean_array_push(x_151, x_152); +x_154 = lean_array_push(x_153, x_98); +x_155 = l_myMacro____x40_Init_Notation___hyg_12803____closed__8; x_156 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_156, 0, x_19); -lean_ctor_set(x_156, 1, x_155); -x_157 = lean_array_push(x_150, x_156); -x_158 = l_myMacro____x40_Init_Notation___hyg_12803____closed__14; -x_159 = lean_array_push(x_157, x_158); -x_160 = lean_array_push(x_159, x_105); -x_161 = l_myMacro____x40_Init_Notation___hyg_12803____closed__8; -x_162 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_162, 0, x_161); -lean_ctor_set(x_162, 1, x_160); -x_163 = lean_array_push(x_147, x_162); -x_164 = l_myMacro____x40_Init_Notation___hyg_12803____closed__6; -x_165 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_165, 0, x_164); -lean_ctor_set(x_165, 1, x_163); -x_166 = l_Lean_Elab_Term_expandShow___closed__15; -x_167 = lean_array_push(x_166, x_165); -x_168 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; -x_169 = lean_array_push(x_167, x_168); -x_170 = lean_array_push(x_169, x_146); -x_171 = l_Lean_Elab_Term_elabLetDeclCore___closed__7; -x_172 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_172, 0, x_171); -lean_ctor_set(x_172, 1, x_170); -x_173 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_173, 0, x_172); -lean_ctor_set(x_173, 1, x_3); -return x_173; +lean_ctor_set(x_156, 0, x_155); +lean_ctor_set(x_156, 1, x_154); +x_157 = lean_array_push(x_141, x_156); +x_158 = l_myMacro____x40_Init_Notation___hyg_12803____closed__6; +x_159 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_159, 0, x_158); +lean_ctor_set(x_159, 1, x_157); +x_160 = l_Lean_Elab_Term_expandShow___closed__15; +x_161 = lean_array_push(x_160, x_159); +x_162 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; +x_163 = lean_array_push(x_161, x_162); +x_164 = lean_array_push(x_163, x_140); +x_165 = l_Lean_Elab_Term_elabLetDeclCore___closed__7; +x_166 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_166, 0, x_165); +lean_ctor_set(x_166, 1, x_164); +x_167 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_167, 0, x_166); +lean_ctor_set(x_167, 1, x_3); +return x_167; } } } else { -lean_object* x_174; lean_object* x_175; uint8_t x_176; -x_174 = l_Lean_Syntax_getArg(x_33, x_16); -lean_dec(x_33); -x_175 = l_Lean_Syntax_getArg(x_11, x_10); -x_176 = l_Lean_Syntax_isNone(x_175); -if (x_176 == 0) +lean_object* x_168; lean_object* x_169; lean_object* x_170; uint8_t x_171; +x_168 = l_Lean_Syntax_getArg(x_25, x_8); +lean_dec(x_25); +x_169 = lean_unsigned_to_nat(4u); +x_170 = l_Lean_Syntax_getArg(x_1, x_169); +x_171 = l_Lean_Syntax_isNone(x_170); +if (x_171 == 0) { -uint8_t x_177; -lean_inc(x_175); -x_177 = l_Lean_Syntax_isOfKind(x_175, x_19); +uint8_t x_172; +lean_inc(x_170); +x_172 = l_Lean_Syntax_isOfKind(x_170, x_11); +if (x_172 == 0) +{ +lean_object* x_173; lean_object* x_174; +lean_dec(x_170); +lean_dec(x_168); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_1); +x_173 = lean_box(1); +x_174 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_174, 0, x_173); +lean_ctor_set(x_174, 1, x_3); +return x_174; +} +else +{ +lean_object* x_175; lean_object* x_176; uint8_t x_177; +x_175 = l_Lean_Syntax_getArgs(x_170); +lean_dec(x_170); +x_176 = lean_array_get_size(x_175); +lean_dec(x_175); +x_177 = lean_nat_dec_eq(x_176, x_8); +lean_dec(x_176); if (x_177 == 0) { lean_object* x_178; lean_object* x_179; -lean_dec(x_175); -lean_dec(x_174); -lean_dec(x_31); -lean_dec(x_30); -lean_dec(x_11); +lean_dec(x_168); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_1); x_178 = lean_box(1); x_179 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_179, 0, x_178); @@ -2305,122 +2316,100 @@ return x_179; } else { -lean_object* x_180; lean_object* x_181; uint8_t x_182; -x_180 = l_Lean_Syntax_getArgs(x_175); -lean_dec(x_175); -x_181 = lean_array_get_size(x_180); -lean_dec(x_180); -x_182 = lean_nat_dec_eq(x_181, x_16); -lean_dec(x_181); -if (x_182 == 0) -{ -lean_object* x_183; lean_object* x_184; -lean_dec(x_174); -lean_dec(x_31); -lean_dec(x_30); -lean_dec(x_11); -x_183 = lean_box(1); -x_184 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_184, 0, x_183); -lean_ctor_set(x_184, 1, x_3); -return x_184; -} -else -{ -lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; -x_185 = lean_unsigned_to_nat(5u); -x_186 = l_Lean_Syntax_getArg(x_11, x_185); -lean_dec(x_11); -x_187 = l_Array_empty___closed__1; -x_188 = lean_array_push(x_187, x_30); -x_189 = l_myMacro____x40_Init_Notation___hyg_12176____closed__22; -x_190 = lean_array_push(x_188, x_189); -x_191 = l_myMacro____x40_Init_Notation___hyg_12176____closed__11; -x_192 = lean_array_push(x_191, x_31); -x_193 = l_Lean_expandExplicitBindersAux_loop___closed__8; -x_194 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_194, 0, x_193); -lean_ctor_set(x_194, 1, x_192); -x_195 = lean_array_push(x_187, x_194); -x_196 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_196, 0, x_19); -lean_ctor_set(x_196, 1, x_195); -x_197 = lean_array_push(x_190, x_196); -x_198 = l_myMacro____x40_Init_Notation___hyg_12803____closed__14; -x_199 = lean_array_push(x_197, x_198); -x_200 = lean_array_push(x_199, x_174); -x_201 = l_myMacro____x40_Init_Notation___hyg_12803____closed__8; -x_202 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_202, 0, x_201); -lean_ctor_set(x_202, 1, x_200); -x_203 = lean_array_push(x_187, x_202); -x_204 = l_myMacro____x40_Init_Notation___hyg_12803____closed__6; -x_205 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_205, 0, x_204); -lean_ctor_set(x_205, 1, x_203); -x_206 = l_Lean_Elab_Term_expandShow___closed__15; -x_207 = lean_array_push(x_206, x_205); -x_208 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; -x_209 = lean_array_push(x_207, x_208); -x_210 = lean_array_push(x_209, x_186); -x_211 = l_Lean_Elab_Term_elabLetDeclCore___closed__7; -x_212 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_212, 0, x_211); -lean_ctor_set(x_212, 1, x_210); -x_213 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_213, 0, x_212); -lean_ctor_set(x_213, 1, x_3); -return x_213; +lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; +x_180 = lean_unsigned_to_nat(5u); +x_181 = l_Lean_Syntax_getArg(x_1, x_180); +lean_dec(x_1); +x_182 = l_Array_empty___closed__1; +x_183 = lean_array_push(x_182, x_22); +x_184 = l_myMacro____x40_Init_Notation___hyg_12176____closed__22; +x_185 = lean_array_push(x_183, x_184); +x_186 = l_myMacro____x40_Init_Notation___hyg_12176____closed__11; +x_187 = lean_array_push(x_186, x_23); +x_188 = l_Lean_expandExplicitBindersAux_loop___closed__8; +x_189 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_189, 0, x_188); +lean_ctor_set(x_189, 1, x_187); +x_190 = lean_array_push(x_182, x_189); +x_191 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_191, 0, x_11); +lean_ctor_set(x_191, 1, x_190); +x_192 = lean_array_push(x_185, x_191); +x_193 = l_myMacro____x40_Init_Notation___hyg_12803____closed__14; +x_194 = lean_array_push(x_192, x_193); +x_195 = lean_array_push(x_194, x_168); +x_196 = l_myMacro____x40_Init_Notation___hyg_12803____closed__8; +x_197 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_197, 0, x_196); +lean_ctor_set(x_197, 1, x_195); +x_198 = lean_array_push(x_182, x_197); +x_199 = l_myMacro____x40_Init_Notation___hyg_12803____closed__6; +x_200 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_200, 0, x_199); +lean_ctor_set(x_200, 1, x_198); +x_201 = l_Lean_Elab_Term_expandShow___closed__15; +x_202 = lean_array_push(x_201, x_200); +x_203 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; +x_204 = lean_array_push(x_202, x_203); +x_205 = lean_array_push(x_204, x_181); +x_206 = l_Lean_Elab_Term_elabLetDeclCore___closed__7; +x_207 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_207, 0, x_206); +lean_ctor_set(x_207, 1, x_205); +x_208 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_208, 0, x_207); +lean_ctor_set(x_208, 1, x_3); +return x_208; } } } else { -lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; -lean_dec(x_175); -x_214 = lean_unsigned_to_nat(5u); -x_215 = l_Lean_Syntax_getArg(x_11, x_214); -lean_dec(x_11); -x_216 = l_Array_empty___closed__1; -x_217 = lean_array_push(x_216, x_30); -x_218 = l_myMacro____x40_Init_Notation___hyg_12176____closed__22; -x_219 = lean_array_push(x_217, x_218); -x_220 = l_myMacro____x40_Init_Notation___hyg_12176____closed__11; -x_221 = lean_array_push(x_220, x_31); -x_222 = l_Lean_expandExplicitBindersAux_loop___closed__8; -x_223 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_223, 0, x_222); -lean_ctor_set(x_223, 1, x_221); -x_224 = lean_array_push(x_216, x_223); -x_225 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_225, 0, x_19); -lean_ctor_set(x_225, 1, x_224); -x_226 = lean_array_push(x_219, x_225); -x_227 = l_myMacro____x40_Init_Notation___hyg_12803____closed__14; -x_228 = lean_array_push(x_226, x_227); -x_229 = lean_array_push(x_228, x_174); -x_230 = l_myMacro____x40_Init_Notation___hyg_12803____closed__8; -x_231 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_231, 0, x_230); -lean_ctor_set(x_231, 1, x_229); -x_232 = lean_array_push(x_216, x_231); -x_233 = l_myMacro____x40_Init_Notation___hyg_12803____closed__6; -x_234 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_234, 0, x_233); -lean_ctor_set(x_234, 1, x_232); -x_235 = l_Lean_Elab_Term_expandShow___closed__15; -x_236 = lean_array_push(x_235, x_234); -x_237 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; -x_238 = lean_array_push(x_236, x_237); -x_239 = lean_array_push(x_238, x_215); -x_240 = l_Lean_Elab_Term_elabLetDeclCore___closed__7; -x_241 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_241, 0, x_240); -lean_ctor_set(x_241, 1, x_239); -x_242 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_242, 0, x_241); -lean_ctor_set(x_242, 1, x_3); -return x_242; +lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; +lean_dec(x_170); +x_209 = lean_unsigned_to_nat(5u); +x_210 = l_Lean_Syntax_getArg(x_1, x_209); +lean_dec(x_1); +x_211 = l_Array_empty___closed__1; +x_212 = lean_array_push(x_211, x_22); +x_213 = l_myMacro____x40_Init_Notation___hyg_12176____closed__22; +x_214 = lean_array_push(x_212, x_213); +x_215 = l_myMacro____x40_Init_Notation___hyg_12176____closed__11; +x_216 = lean_array_push(x_215, x_23); +x_217 = l_Lean_expandExplicitBindersAux_loop___closed__8; +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_211, x_218); +x_220 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_220, 0, x_11); +lean_ctor_set(x_220, 1, x_219); +x_221 = lean_array_push(x_214, x_220); +x_222 = l_myMacro____x40_Init_Notation___hyg_12803____closed__14; +x_223 = lean_array_push(x_221, x_222); +x_224 = lean_array_push(x_223, x_168); +x_225 = l_myMacro____x40_Init_Notation___hyg_12803____closed__8; +x_226 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_226, 0, x_225); +lean_ctor_set(x_226, 1, x_224); +x_227 = lean_array_push(x_211, x_226); +x_228 = l_myMacro____x40_Init_Notation___hyg_12803____closed__6; +x_229 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_229, 0, x_228); +lean_ctor_set(x_229, 1, x_227); +x_230 = l_Lean_Elab_Term_expandShow___closed__15; +x_231 = lean_array_push(x_230, x_229); +x_232 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; +x_233 = lean_array_push(x_231, x_232); +x_234 = lean_array_push(x_233, x_210); +x_235 = l_Lean_Elab_Term_elabLetDeclCore___closed__7; +x_236 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_236, 0, x_235); +lean_ctor_set(x_236, 1, x_234); +x_237 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_237, 0, x_236); +lean_ctor_set(x_237, 1, x_3); +return x_237; } } } @@ -2428,33 +2417,53 @@ return x_242; } else { -lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; uint8_t x_248; -lean_dec(x_17); -x_243 = lean_unsigned_to_nat(2u); -x_244 = l_Lean_Syntax_getArg(x_11, x_243); -x_245 = lean_unsigned_to_nat(3u); -x_246 = l_Lean_Syntax_getArg(x_11, x_245); -x_247 = l_Lean_Elab_Term_expandShow___closed__3; -lean_inc(x_246); -x_248 = l_Lean_Syntax_isOfKind(x_246, x_247); -if (x_248 == 0) +lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; uint8_t x_243; +lean_dec(x_9); +x_238 = lean_unsigned_to_nat(2u); +x_239 = l_Lean_Syntax_getArg(x_1, x_238); +x_240 = lean_unsigned_to_nat(3u); +x_241 = l_Lean_Syntax_getArg(x_1, x_240); +x_242 = l_Lean_Elab_Term_expandShow___closed__3; +lean_inc(x_241); +x_243 = l_Lean_Syntax_isOfKind(x_241, x_242); +if (x_243 == 0) { -lean_object* x_249; uint8_t x_250; -x_249 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_15583____closed__4; -lean_inc(x_246); -x_250 = l_Lean_Syntax_isOfKind(x_246, x_249); -if (x_250 == 0) +lean_object* x_244; uint8_t x_245; +x_244 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_15583____closed__4; +lean_inc(x_241); +x_245 = l_Lean_Syntax_isOfKind(x_241, x_244); +if (x_245 == 0) { -lean_object* x_251; uint8_t x_252; -x_251 = l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__2; -lean_inc(x_246); -x_252 = l_Lean_Syntax_isOfKind(x_246, x_251); +lean_object* x_246; uint8_t x_247; +x_246 = l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__2; +lean_inc(x_241); +x_247 = l_Lean_Syntax_isOfKind(x_241, x_246); +if (x_247 == 0) +{ +lean_object* x_248; lean_object* x_249; +lean_dec(x_241); +lean_dec(x_239); +lean_dec(x_1); +x_248 = lean_box(1); +x_249 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_249, 0, x_248); +lean_ctor_set(x_249, 1, x_3); +return x_249; +} +else +{ +lean_object* x_250; lean_object* x_251; uint8_t x_252; +x_250 = l_Lean_Syntax_getArg(x_241, x_8); +lean_dec(x_241); +x_251 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_13592____closed__3; +lean_inc(x_250); +x_252 = l_Lean_Syntax_isOfKind(x_250, x_251); if (x_252 == 0) { lean_object* x_253; lean_object* x_254; -lean_dec(x_246); -lean_dec(x_244); -lean_dec(x_11); +lean_dec(x_250); +lean_dec(x_239); +lean_dec(x_1); x_253 = lean_box(1); x_254 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_254, 0, x_253); @@ -2464,433 +2473,416 @@ return x_254; else { lean_object* x_255; lean_object* x_256; uint8_t x_257; -x_255 = l_Lean_Syntax_getArg(x_246, x_16); -lean_dec(x_246); -x_256 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_13592____closed__3; -lean_inc(x_255); -x_257 = l_Lean_Syntax_isOfKind(x_255, x_256); +x_255 = lean_unsigned_to_nat(4u); +x_256 = l_Lean_Syntax_getArg(x_1, x_255); +x_257 = l_Lean_Syntax_isNone(x_256); if (x_257 == 0) { -lean_object* x_258; lean_object* x_259; -lean_dec(x_255); -lean_dec(x_244); -lean_dec(x_11); -x_258 = lean_box(1); -x_259 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_259, 0, x_258); -lean_ctor_set(x_259, 1, x_3); -return x_259; +lean_object* x_258; uint8_t x_259; +x_258 = l_Lean_nullKind___closed__2; +lean_inc(x_256); +x_259 = l_Lean_Syntax_isOfKind(x_256, x_258); +if (x_259 == 0) +{ +lean_object* x_260; lean_object* x_261; +lean_dec(x_256); +lean_dec(x_250); +lean_dec(x_239); +lean_dec(x_1); +x_260 = lean_box(1); +x_261 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_261, 0, x_260); +lean_ctor_set(x_261, 1, x_3); +return x_261; } else { -lean_object* x_260; uint8_t x_261; -x_260 = l_Lean_Syntax_getArg(x_11, x_10); -x_261 = l_Lean_Syntax_isNone(x_260); -if (x_261 == 0) +lean_object* x_262; lean_object* x_263; uint8_t x_264; +x_262 = l_Lean_Syntax_getArgs(x_256); +lean_dec(x_256); +x_263 = lean_array_get_size(x_262); +lean_dec(x_262); +x_264 = lean_nat_dec_eq(x_263, x_8); +lean_dec(x_263); +if (x_264 == 0) { -lean_object* x_262; uint8_t x_263; -x_262 = l_Lean_nullKind___closed__2; -lean_inc(x_260); -x_263 = l_Lean_Syntax_isOfKind(x_260, x_262); -if (x_263 == 0) -{ -lean_object* x_264; lean_object* x_265; -lean_dec(x_260); -lean_dec(x_255); -lean_dec(x_244); -lean_dec(x_11); -x_264 = lean_box(1); -x_265 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_265, 0, x_264); -lean_ctor_set(x_265, 1, x_3); -return x_265; +lean_object* x_265; lean_object* x_266; +lean_dec(x_250); +lean_dec(x_239); +lean_dec(x_1); +x_265 = lean_box(1); +x_266 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_266, 0, x_265); +lean_ctor_set(x_266, 1, x_3); +return x_266; } else { -lean_object* x_266; lean_object* x_267; uint8_t x_268; -x_266 = l_Lean_Syntax_getArgs(x_260); -lean_dec(x_260); -x_267 = lean_array_get_size(x_266); -lean_dec(x_266); -x_268 = lean_nat_dec_eq(x_267, x_16); -lean_dec(x_267); -if (x_268 == 0) -{ -lean_object* x_269; lean_object* x_270; -lean_dec(x_255); -lean_dec(x_244); -lean_dec(x_11); -x_269 = lean_box(1); -x_270 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_270, 0, x_269); -lean_ctor_set(x_270, 1, x_3); -return x_270; -} -else -{ -lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; -x_271 = lean_unsigned_to_nat(5u); -x_272 = l_Lean_Syntax_getArg(x_11, x_271); -lean_dec(x_11); -x_273 = l_Lean_Elab_Term_expandHave___closed__2; -x_274 = lean_array_push(x_273, x_244); -x_275 = l_Lean_Elab_Term_expandShow___closed__11; -x_276 = lean_array_push(x_275, x_255); -x_277 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_277, 0, x_251); -lean_ctor_set(x_277, 1, x_276); -x_278 = l_Lean_Elab_Term_expandShow___closed__8; -x_279 = lean_array_push(x_278, x_277); -x_280 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_280, 0, x_247); -lean_ctor_set(x_280, 1, x_279); -x_281 = lean_array_push(x_274, x_280); -x_282 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; -x_283 = lean_array_push(x_281, x_282); -x_284 = lean_array_push(x_283, x_272); -x_285 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_285, 0, x_12); -lean_ctor_set(x_285, 1, x_284); -x_286 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_286, 0, x_285); -lean_ctor_set(x_286, 1, x_3); -return x_286; +lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; +x_267 = lean_unsigned_to_nat(5u); +x_268 = l_Lean_Syntax_getArg(x_1, x_267); +lean_dec(x_1); +x_269 = l_Lean_Elab_Term_expandHave___closed__2; +x_270 = lean_array_push(x_269, x_239); +x_271 = l_Lean_Elab_Term_expandShow___closed__11; +x_272 = lean_array_push(x_271, x_250); +x_273 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_273, 0, x_246); +lean_ctor_set(x_273, 1, x_272); +x_274 = l_Lean_Elab_Term_expandShow___closed__8; +x_275 = lean_array_push(x_274, x_273); +x_276 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_276, 0, x_242); +lean_ctor_set(x_276, 1, x_275); +x_277 = lean_array_push(x_270, x_276); +x_278 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; +x_279 = lean_array_push(x_277, x_278); +x_280 = lean_array_push(x_279, x_268); +x_281 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_281, 0, x_4); +lean_ctor_set(x_281, 1, x_280); +x_282 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_282, 0, x_281); +lean_ctor_set(x_282, 1, x_3); +return x_282; } } } else { -lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; -lean_dec(x_260); -x_287 = lean_unsigned_to_nat(5u); -x_288 = l_Lean_Syntax_getArg(x_11, x_287); -lean_dec(x_11); -x_289 = l_Lean_Elab_Term_expandHave___closed__2; -x_290 = lean_array_push(x_289, x_244); -x_291 = l_Lean_Elab_Term_expandShow___closed__11; -x_292 = lean_array_push(x_291, x_255); -x_293 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_293, 0, x_251); -lean_ctor_set(x_293, 1, x_292); -x_294 = l_Lean_Elab_Term_expandShow___closed__8; -x_295 = lean_array_push(x_294, x_293); -x_296 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_296, 0, x_247); -lean_ctor_set(x_296, 1, x_295); -x_297 = lean_array_push(x_290, x_296); -x_298 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; -x_299 = lean_array_push(x_297, x_298); -x_300 = lean_array_push(x_299, x_288); -x_301 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_301, 0, x_12); -lean_ctor_set(x_301, 1, x_300); -x_302 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_302, 0, x_301); -lean_ctor_set(x_302, 1, x_3); -return x_302; +lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; +lean_dec(x_256); +x_283 = lean_unsigned_to_nat(5u); +x_284 = l_Lean_Syntax_getArg(x_1, x_283); +lean_dec(x_1); +x_285 = l_Lean_Elab_Term_expandHave___closed__2; +x_286 = lean_array_push(x_285, x_239); +x_287 = l_Lean_Elab_Term_expandShow___closed__11; +x_288 = lean_array_push(x_287, x_250); +x_289 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_289, 0, x_246); +lean_ctor_set(x_289, 1, x_288); +x_290 = l_Lean_Elab_Term_expandShow___closed__8; +x_291 = lean_array_push(x_290, x_289); +x_292 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_292, 0, x_242); +lean_ctor_set(x_292, 1, x_291); +x_293 = lean_array_push(x_286, x_292); +x_294 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; +x_295 = lean_array_push(x_293, x_294); +x_296 = lean_array_push(x_295, x_284); +x_297 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_297, 0, x_4); +lean_ctor_set(x_297, 1, x_296); +x_298 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_298, 0, x_297); +lean_ctor_set(x_298, 1, x_3); +return x_298; } } } } else { -lean_object* x_303; lean_object* x_304; uint8_t x_305; -x_303 = l_Lean_Syntax_getArg(x_246, x_16); -lean_dec(x_246); -x_304 = l_Lean_Syntax_getArg(x_11, x_10); -x_305 = l_Lean_Syntax_isNone(x_304); -if (x_305 == 0) +lean_object* x_299; lean_object* x_300; lean_object* x_301; uint8_t x_302; +x_299 = l_Lean_Syntax_getArg(x_241, x_8); +lean_dec(x_241); +x_300 = lean_unsigned_to_nat(4u); +x_301 = l_Lean_Syntax_getArg(x_1, x_300); +x_302 = l_Lean_Syntax_isNone(x_301); +if (x_302 == 0) { -lean_object* x_306; uint8_t x_307; -x_306 = l_Lean_nullKind___closed__2; -lean_inc(x_304); -x_307 = l_Lean_Syntax_isOfKind(x_304, x_306); -if (x_307 == 0) +lean_object* x_303; uint8_t x_304; +x_303 = l_Lean_nullKind___closed__2; +lean_inc(x_301); +x_304 = l_Lean_Syntax_isOfKind(x_301, x_303); +if (x_304 == 0) { -lean_object* x_308; lean_object* x_309; -lean_dec(x_304); -lean_dec(x_303); -lean_dec(x_244); -lean_dec(x_11); -x_308 = lean_box(1); -x_309 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_309, 0, x_308); -lean_ctor_set(x_309, 1, x_3); -return x_309; +lean_object* x_305; lean_object* x_306; +lean_dec(x_301); +lean_dec(x_299); +lean_dec(x_239); +lean_dec(x_1); +x_305 = lean_box(1); +x_306 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_306, 0, x_305); +lean_ctor_set(x_306, 1, x_3); +return x_306; } else { -lean_object* x_310; lean_object* x_311; uint8_t x_312; -x_310 = l_Lean_Syntax_getArgs(x_304); -lean_dec(x_304); -x_311 = lean_array_get_size(x_310); -lean_dec(x_310); -x_312 = lean_nat_dec_eq(x_311, x_16); -lean_dec(x_311); -if (x_312 == 0) +lean_object* x_307; lean_object* x_308; uint8_t x_309; +x_307 = l_Lean_Syntax_getArgs(x_301); +lean_dec(x_301); +x_308 = lean_array_get_size(x_307); +lean_dec(x_307); +x_309 = lean_nat_dec_eq(x_308, x_8); +lean_dec(x_308); +if (x_309 == 0) { -lean_object* x_313; lean_object* x_314; -lean_dec(x_303); -lean_dec(x_244); -lean_dec(x_11); -x_313 = lean_box(1); -x_314 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_314, 0, x_313); -lean_ctor_set(x_314, 1, x_3); -return x_314; +lean_object* x_310; lean_object* x_311; +lean_dec(x_299); +lean_dec(x_239); +lean_dec(x_1); +x_310 = lean_box(1); +x_311 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_311, 0, x_310); +lean_ctor_set(x_311, 1, x_3); +return x_311; } else { -lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; -x_315 = lean_unsigned_to_nat(5u); -x_316 = l_Lean_Syntax_getArg(x_11, x_315); -x_317 = l_Lean_Elab_Term_expandShow___closed__13; -x_318 = l_Lean_mkIdentFrom(x_11, x_317); -lean_dec(x_11); -x_319 = l_Array_empty___closed__1; -x_320 = lean_array_push(x_319, x_318); -x_321 = l_myMacro____x40_Init_Notation___hyg_12176____closed__22; -x_322 = lean_array_push(x_320, x_321); -x_323 = l_myMacro____x40_Init_Notation___hyg_12176____closed__11; -x_324 = lean_array_push(x_323, x_244); -x_325 = l_Lean_expandExplicitBindersAux_loop___closed__8; -x_326 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_326, 0, x_325); -lean_ctor_set(x_326, 1, x_324); -x_327 = lean_array_push(x_319, x_326); -x_328 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_328, 0, x_306); -lean_ctor_set(x_328, 1, x_327); -x_329 = lean_array_push(x_322, x_328); -x_330 = l_myMacro____x40_Init_Notation___hyg_12803____closed__14; -x_331 = lean_array_push(x_329, x_330); -x_332 = lean_array_push(x_331, x_303); -x_333 = l_myMacro____x40_Init_Notation___hyg_12803____closed__8; +lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; +x_312 = lean_unsigned_to_nat(5u); +x_313 = l_Lean_Syntax_getArg(x_1, x_312); +x_314 = l_Lean_Elab_Term_expandShow___closed__13; +x_315 = l_Lean_mkIdentFrom(x_1, x_314); +lean_dec(x_1); +x_316 = l_Array_empty___closed__1; +x_317 = lean_array_push(x_316, x_315); +x_318 = l_myMacro____x40_Init_Notation___hyg_12176____closed__22; +x_319 = lean_array_push(x_317, x_318); +x_320 = l_myMacro____x40_Init_Notation___hyg_12176____closed__11; +x_321 = lean_array_push(x_320, x_239); +x_322 = l_Lean_expandExplicitBindersAux_loop___closed__8; +x_323 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_323, 0, x_322); +lean_ctor_set(x_323, 1, x_321); +x_324 = lean_array_push(x_316, x_323); +x_325 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_325, 0, x_303); +lean_ctor_set(x_325, 1, x_324); +x_326 = lean_array_push(x_319, x_325); +x_327 = l_myMacro____x40_Init_Notation___hyg_12803____closed__14; +x_328 = lean_array_push(x_326, x_327); +x_329 = lean_array_push(x_328, x_299); +x_330 = l_myMacro____x40_Init_Notation___hyg_12803____closed__8; +x_331 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_331, 0, x_330); +lean_ctor_set(x_331, 1, x_329); +x_332 = lean_array_push(x_316, x_331); +x_333 = l_myMacro____x40_Init_Notation___hyg_12803____closed__6; x_334 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_334, 0, x_333); lean_ctor_set(x_334, 1, x_332); -x_335 = lean_array_push(x_319, x_334); -x_336 = l_myMacro____x40_Init_Notation___hyg_12803____closed__6; -x_337 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_337, 0, x_336); -lean_ctor_set(x_337, 1, x_335); -x_338 = l_Lean_Elab_Term_expandShow___closed__15; -x_339 = lean_array_push(x_338, x_337); -x_340 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; -x_341 = lean_array_push(x_339, x_340); -x_342 = lean_array_push(x_341, x_316); -x_343 = l_Lean_Elab_Term_elabLetDeclCore___closed__7; -x_344 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_344, 0, x_343); -lean_ctor_set(x_344, 1, x_342); -x_345 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_345, 0, x_344); -lean_ctor_set(x_345, 1, x_3); -return x_345; +x_335 = l_Lean_Elab_Term_expandShow___closed__15; +x_336 = lean_array_push(x_335, x_334); +x_337 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; +x_338 = lean_array_push(x_336, x_337); +x_339 = lean_array_push(x_338, x_313); +x_340 = l_Lean_Elab_Term_elabLetDeclCore___closed__7; +x_341 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_341, 0, x_340); +lean_ctor_set(x_341, 1, x_339); +x_342 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_342, 0, x_341); +lean_ctor_set(x_342, 1, x_3); +return x_342; } } } else { -lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; -lean_dec(x_304); -x_346 = lean_unsigned_to_nat(5u); -x_347 = l_Lean_Syntax_getArg(x_11, x_346); -x_348 = l_Lean_Elab_Term_expandShow___closed__13; -x_349 = l_Lean_mkIdentFrom(x_11, x_348); -lean_dec(x_11); -x_350 = l_Array_empty___closed__1; -x_351 = lean_array_push(x_350, x_349); -x_352 = l_myMacro____x40_Init_Notation___hyg_521____closed__23; -x_353 = lean_array_push(x_351, x_352); -x_354 = l_myMacro____x40_Init_Notation___hyg_12176____closed__11; -x_355 = lean_array_push(x_354, x_244); -x_356 = l_Lean_expandExplicitBindersAux_loop___closed__8; +lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; +lean_dec(x_301); +x_343 = lean_unsigned_to_nat(5u); +x_344 = l_Lean_Syntax_getArg(x_1, x_343); +x_345 = l_Lean_Elab_Term_expandShow___closed__13; +x_346 = l_Lean_mkIdentFrom(x_1, x_345); +lean_dec(x_1); +x_347 = l_Array_empty___closed__1; +x_348 = lean_array_push(x_347, x_346); +x_349 = l_myMacro____x40_Init_Notation___hyg_521____closed__23; +x_350 = lean_array_push(x_348, x_349); +x_351 = l_myMacro____x40_Init_Notation___hyg_12176____closed__11; +x_352 = lean_array_push(x_351, x_239); +x_353 = l_Lean_expandExplicitBindersAux_loop___closed__8; +x_354 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_354, 0, x_353); +lean_ctor_set(x_354, 1, x_352); +x_355 = lean_array_push(x_347, x_354); +x_356 = l_Lean_nullKind___closed__2; x_357 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_357, 0, x_356); lean_ctor_set(x_357, 1, x_355); x_358 = lean_array_push(x_350, x_357); -x_359 = l_Lean_nullKind___closed__2; -x_360 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_360, 0, x_359); -lean_ctor_set(x_360, 1, x_358); -x_361 = lean_array_push(x_353, x_360); -x_362 = l_myMacro____x40_Init_Notation___hyg_12803____closed__14; -x_363 = lean_array_push(x_361, x_362); -x_364 = lean_array_push(x_363, x_303); -x_365 = l_myMacro____x40_Init_Notation___hyg_12803____closed__8; +x_359 = l_myMacro____x40_Init_Notation___hyg_12803____closed__14; +x_360 = lean_array_push(x_358, x_359); +x_361 = lean_array_push(x_360, x_299); +x_362 = l_myMacro____x40_Init_Notation___hyg_12803____closed__8; +x_363 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_363, 0, x_362); +lean_ctor_set(x_363, 1, x_361); +x_364 = lean_array_push(x_347, x_363); +x_365 = l_myMacro____x40_Init_Notation___hyg_12803____closed__6; x_366 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_366, 0, x_365); lean_ctor_set(x_366, 1, x_364); -x_367 = lean_array_push(x_350, x_366); -x_368 = l_myMacro____x40_Init_Notation___hyg_12803____closed__6; -x_369 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_369, 0, x_368); -lean_ctor_set(x_369, 1, x_367); -x_370 = l_Lean_Elab_Term_expandShow___closed__15; -x_371 = lean_array_push(x_370, x_369); -x_372 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; -x_373 = lean_array_push(x_371, x_372); -x_374 = lean_array_push(x_373, x_347); -x_375 = l_Lean_Elab_Term_elabLetDeclCore___closed__7; -x_376 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_376, 0, x_375); -lean_ctor_set(x_376, 1, x_374); -x_377 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_377, 0, x_376); -lean_ctor_set(x_377, 1, x_3); -return x_377; +x_367 = l_Lean_Elab_Term_expandShow___closed__15; +x_368 = lean_array_push(x_367, x_366); +x_369 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; +x_370 = lean_array_push(x_368, x_369); +x_371 = lean_array_push(x_370, x_344); +x_372 = l_Lean_Elab_Term_elabLetDeclCore___closed__7; +x_373 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_373, 0, x_372); +lean_ctor_set(x_373, 1, x_371); +x_374 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_374, 0, x_373); +lean_ctor_set(x_374, 1, x_3); +return x_374; } } } else { -lean_object* x_378; lean_object* x_379; uint8_t x_380; -x_378 = l_Lean_Syntax_getArg(x_246, x_16); -lean_dec(x_246); -x_379 = l_Lean_Syntax_getArg(x_11, x_10); -x_380 = l_Lean_Syntax_isNone(x_379); +lean_object* x_375; lean_object* x_376; lean_object* x_377; uint8_t x_378; +x_375 = l_Lean_Syntax_getArg(x_241, x_8); +lean_dec(x_241); +x_376 = lean_unsigned_to_nat(4u); +x_377 = l_Lean_Syntax_getArg(x_1, x_376); +x_378 = l_Lean_Syntax_isNone(x_377); +if (x_378 == 0) +{ +lean_object* x_379; uint8_t x_380; +x_379 = l_Lean_nullKind___closed__2; +lean_inc(x_377); +x_380 = l_Lean_Syntax_isOfKind(x_377, x_379); if (x_380 == 0) { -lean_object* x_381; uint8_t x_382; -x_381 = l_Lean_nullKind___closed__2; -lean_inc(x_379); -x_382 = l_Lean_Syntax_isOfKind(x_379, x_381); -if (x_382 == 0) -{ -lean_object* x_383; lean_object* x_384; -lean_dec(x_379); -lean_dec(x_378); -lean_dec(x_244); -lean_dec(x_11); -x_383 = lean_box(1); -x_384 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_384, 0, x_383); -lean_ctor_set(x_384, 1, x_3); -return x_384; +lean_object* x_381; lean_object* x_382; +lean_dec(x_377); +lean_dec(x_375); +lean_dec(x_239); +lean_dec(x_1); +x_381 = lean_box(1); +x_382 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_382, 0, x_381); +lean_ctor_set(x_382, 1, x_3); +return x_382; } else { -lean_object* x_385; lean_object* x_386; uint8_t x_387; -x_385 = l_Lean_Syntax_getArgs(x_379); -lean_dec(x_379); -x_386 = lean_array_get_size(x_385); -lean_dec(x_385); -x_387 = lean_nat_dec_eq(x_386, x_16); -lean_dec(x_386); -if (x_387 == 0) +lean_object* x_383; lean_object* x_384; uint8_t x_385; +x_383 = l_Lean_Syntax_getArgs(x_377); +lean_dec(x_377); +x_384 = lean_array_get_size(x_383); +lean_dec(x_383); +x_385 = lean_nat_dec_eq(x_384, x_8); +lean_dec(x_384); +if (x_385 == 0) { -lean_object* x_388; lean_object* x_389; -lean_dec(x_378); -lean_dec(x_244); -lean_dec(x_11); -x_388 = lean_box(1); -x_389 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_389, 0, x_388); -lean_ctor_set(x_389, 1, x_3); -return x_389; +lean_object* x_386; lean_object* x_387; +lean_dec(x_375); +lean_dec(x_239); +lean_dec(x_1); +x_386 = lean_box(1); +x_387 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_387, 0, x_386); +lean_ctor_set(x_387, 1, x_3); +return x_387; } else { -lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; -x_390 = lean_unsigned_to_nat(5u); -x_391 = l_Lean_Syntax_getArg(x_11, x_390); -x_392 = l_Lean_Elab_Term_expandShow___closed__13; -x_393 = l_Lean_mkIdentFrom(x_11, x_392); -lean_dec(x_11); -x_394 = l_Array_empty___closed__1; -x_395 = lean_array_push(x_394, x_393); -x_396 = l_myMacro____x40_Init_Notation___hyg_12176____closed__22; -x_397 = lean_array_push(x_395, x_396); -x_398 = l_myMacro____x40_Init_Notation___hyg_12176____closed__11; -x_399 = lean_array_push(x_398, x_244); -x_400 = l_Lean_expandExplicitBindersAux_loop___closed__8; +lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; +x_388 = lean_unsigned_to_nat(5u); +x_389 = l_Lean_Syntax_getArg(x_1, x_388); +x_390 = l_Lean_Elab_Term_expandShow___closed__13; +x_391 = l_Lean_mkIdentFrom(x_1, x_390); +lean_dec(x_1); +x_392 = l_Array_empty___closed__1; +x_393 = lean_array_push(x_392, x_391); +x_394 = l_myMacro____x40_Init_Notation___hyg_12176____closed__22; +x_395 = lean_array_push(x_393, x_394); +x_396 = l_myMacro____x40_Init_Notation___hyg_12176____closed__11; +x_397 = lean_array_push(x_396, x_239); +x_398 = l_Lean_expandExplicitBindersAux_loop___closed__8; +x_399 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_399, 0, x_398); +lean_ctor_set(x_399, 1, x_397); +x_400 = lean_array_push(x_392, x_399); x_401 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_401, 0, x_400); -lean_ctor_set(x_401, 1, x_399); -x_402 = lean_array_push(x_394, x_401); -x_403 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_403, 0, x_381); -lean_ctor_set(x_403, 1, x_402); -x_404 = lean_array_push(x_397, x_403); -x_405 = l_myMacro____x40_Init_Notation___hyg_12803____closed__14; -x_406 = lean_array_push(x_404, x_405); -x_407 = lean_array_push(x_406, x_378); -x_408 = l_myMacro____x40_Init_Notation___hyg_12803____closed__8; -x_409 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_409, 0, x_408); -lean_ctor_set(x_409, 1, x_407); -x_410 = lean_array_push(x_394, x_409); -x_411 = l_myMacro____x40_Init_Notation___hyg_12803____closed__6; -x_412 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_412, 0, x_411); -lean_ctor_set(x_412, 1, x_410); -x_413 = l_Lean_Elab_Term_expandShow___closed__15; -x_414 = lean_array_push(x_413, x_412); -x_415 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; -x_416 = lean_array_push(x_414, x_415); -x_417 = lean_array_push(x_416, x_391); -x_418 = l_Lean_Elab_Term_elabLetDeclCore___closed__7; -x_419 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_419, 0, x_418); -lean_ctor_set(x_419, 1, x_417); -x_420 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_420, 0, x_419); -lean_ctor_set(x_420, 1, x_3); -return x_420; +lean_ctor_set(x_401, 0, x_379); +lean_ctor_set(x_401, 1, x_400); +x_402 = lean_array_push(x_395, x_401); +x_403 = l_myMacro____x40_Init_Notation___hyg_12803____closed__14; +x_404 = lean_array_push(x_402, x_403); +x_405 = lean_array_push(x_404, x_375); +x_406 = l_myMacro____x40_Init_Notation___hyg_12803____closed__8; +x_407 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_407, 0, x_406); +lean_ctor_set(x_407, 1, x_405); +x_408 = lean_array_push(x_392, x_407); +x_409 = l_myMacro____x40_Init_Notation___hyg_12803____closed__6; +x_410 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_410, 0, x_409); +lean_ctor_set(x_410, 1, x_408); +x_411 = l_Lean_Elab_Term_expandShow___closed__15; +x_412 = lean_array_push(x_411, x_410); +x_413 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; +x_414 = lean_array_push(x_412, x_413); +x_415 = lean_array_push(x_414, x_389); +x_416 = l_Lean_Elab_Term_elabLetDeclCore___closed__7; +x_417 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_417, 0, x_416); +lean_ctor_set(x_417, 1, x_415); +x_418 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_418, 0, x_417); +lean_ctor_set(x_418, 1, x_3); +return x_418; } } } else { -lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; -lean_dec(x_379); -x_421 = lean_unsigned_to_nat(5u); -x_422 = l_Lean_Syntax_getArg(x_11, x_421); -x_423 = l_Lean_Elab_Term_expandShow___closed__13; -x_424 = l_Lean_mkIdentFrom(x_11, x_423); -lean_dec(x_11); -x_425 = l_Array_empty___closed__1; -x_426 = lean_array_push(x_425, x_424); -x_427 = l_myMacro____x40_Init_Notation___hyg_521____closed__23; -x_428 = lean_array_push(x_426, x_427); -x_429 = l_myMacro____x40_Init_Notation___hyg_12176____closed__11; -x_430 = lean_array_push(x_429, x_244); -x_431 = l_Lean_expandExplicitBindersAux_loop___closed__8; -x_432 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_432, 0, x_431); -lean_ctor_set(x_432, 1, x_430); -x_433 = lean_array_push(x_425, x_432); -x_434 = l_Lean_nullKind___closed__2; -x_435 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_435, 0, x_434); -lean_ctor_set(x_435, 1, x_433); -x_436 = lean_array_push(x_428, x_435); -x_437 = l_myMacro____x40_Init_Notation___hyg_12803____closed__14; -x_438 = lean_array_push(x_436, x_437); -x_439 = lean_array_push(x_438, x_378); -x_440 = l_myMacro____x40_Init_Notation___hyg_12803____closed__8; -x_441 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_441, 0, x_440); -lean_ctor_set(x_441, 1, x_439); -x_442 = lean_array_push(x_425, x_441); -x_443 = l_myMacro____x40_Init_Notation___hyg_12803____closed__6; -x_444 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_444, 0, x_443); -lean_ctor_set(x_444, 1, x_442); -x_445 = l_Lean_Elab_Term_expandShow___closed__15; -x_446 = lean_array_push(x_445, x_444); -x_447 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; -x_448 = lean_array_push(x_446, x_447); -x_449 = lean_array_push(x_448, x_422); -x_450 = l_Lean_Elab_Term_elabLetDeclCore___closed__7; -x_451 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_451, 0, x_450); -lean_ctor_set(x_451, 1, x_449); -x_452 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_452, 0, x_451); -lean_ctor_set(x_452, 1, x_3); -return x_452; +lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; +lean_dec(x_377); +x_419 = lean_unsigned_to_nat(5u); +x_420 = l_Lean_Syntax_getArg(x_1, x_419); +x_421 = l_Lean_Elab_Term_expandShow___closed__13; +x_422 = l_Lean_mkIdentFrom(x_1, x_421); +lean_dec(x_1); +x_423 = l_Array_empty___closed__1; +x_424 = lean_array_push(x_423, x_422); +x_425 = l_myMacro____x40_Init_Notation___hyg_521____closed__23; +x_426 = lean_array_push(x_424, x_425); +x_427 = l_myMacro____x40_Init_Notation___hyg_12176____closed__11; +x_428 = lean_array_push(x_427, x_239); +x_429 = l_Lean_expandExplicitBindersAux_loop___closed__8; +x_430 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_430, 0, x_429); +lean_ctor_set(x_430, 1, x_428); +x_431 = lean_array_push(x_423, x_430); +x_432 = l_Lean_nullKind___closed__2; +x_433 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_433, 0, x_432); +lean_ctor_set(x_433, 1, x_431); +x_434 = lean_array_push(x_426, x_433); +x_435 = l_myMacro____x40_Init_Notation___hyg_12803____closed__14; +x_436 = lean_array_push(x_434, x_435); +x_437 = lean_array_push(x_436, x_375); +x_438 = l_myMacro____x40_Init_Notation___hyg_12803____closed__8; +x_439 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_439, 0, x_438); +lean_ctor_set(x_439, 1, x_437); +x_440 = lean_array_push(x_423, x_439); +x_441 = l_myMacro____x40_Init_Notation___hyg_12803____closed__6; +x_442 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_442, 0, x_441); +lean_ctor_set(x_442, 1, x_440); +x_443 = l_Lean_Elab_Term_expandShow___closed__15; +x_444 = lean_array_push(x_443, x_442); +x_445 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; +x_446 = lean_array_push(x_444, x_445); +x_447 = lean_array_push(x_446, x_420); +x_448 = l_Lean_Elab_Term_elabLetDeclCore___closed__7; +x_449 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_449, 0, x_448); +lean_ctor_set(x_449, 1, x_447); +x_450 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_450, 0, x_449); +lean_ctor_set(x_450, 1, x_3); +return x_450; } } } @@ -3186,385 +3178,377 @@ return x_3; lean_object* l_Lean_Elab_Term_expandSuffices(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; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_4 = l_myMacro____x40_Init_Notation___hyg_12803____closed__15; -x_5 = l_Lean_mkAtomFrom(x_1, x_4); -x_6 = l_Lean_mkOptionalNode___closed__2; -x_7 = lean_array_push(x_6, x_5); -x_8 = l_Lean_nullKind; -x_9 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_7); -x_10 = lean_unsigned_to_nat(4u); -x_11 = l_Lean_Syntax_setArg(x_1, x_10, x_9); -x_12 = l_Lean_Elab_Term_expandSuffices___closed__1; -lean_inc(x_11); -x_13 = l_Lean_Syntax_isOfKind(x_11, x_12); -if (x_13 == 0) +lean_object* x_4; uint8_t x_5; +x_4 = l_Lean_Elab_Term_expandSuffices___closed__1; +lean_inc(x_1); +x_5 = l_Lean_Syntax_isOfKind(x_1, x_4); +if (x_5 == 0) { -lean_object* x_14; lean_object* x_15; -lean_dec(x_11); -x_14 = lean_box(1); -x_15 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_3); -return x_15; +lean_object* x_6; lean_object* x_7; +lean_dec(x_1); +x_6 = lean_box(1); +x_7 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_3); +return x_7; } else { -lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_16 = lean_unsigned_to_nat(1u); -x_17 = l_Lean_Syntax_getArg(x_11, x_16); -x_18 = l_Lean_Syntax_isNone(x_17); +lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_8 = lean_unsigned_to_nat(1u); +x_9 = l_Lean_Syntax_getArg(x_1, x_8); +x_10 = l_Lean_Syntax_isNone(x_9); +if (x_10 == 0) +{ +lean_object* x_11; uint8_t x_12; +x_11 = l_Lean_nullKind___closed__2; +lean_inc(x_9); +x_12 = l_Lean_Syntax_isOfKind(x_9, x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +lean_dec(x_9); +lean_dec(x_1); +x_13 = lean_box(1); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_3); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_15 = l_Lean_Syntax_getArgs(x_9); +x_16 = lean_array_get_size(x_15); +lean_dec(x_15); +x_17 = lean_unsigned_to_nat(2u); +x_18 = lean_nat_dec_eq(x_16, x_17); +lean_dec(x_16); if (x_18 == 0) { -lean_object* x_19; uint8_t x_20; -x_19 = l_Lean_nullKind___closed__2; -lean_inc(x_17); -x_20 = l_Lean_Syntax_isOfKind(x_17, x_19); -if (x_20 == 0) -{ -lean_object* x_21; lean_object* x_22; -lean_dec(x_17); -lean_dec(x_11); -x_21 = lean_box(1); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_3); -return x_22; +lean_object* x_19; lean_object* x_20; +lean_dec(x_9); +lean_dec(x_1); +x_19 = lean_box(1); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_3); +return x_20; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; -x_23 = l_Lean_Syntax_getArgs(x_17); -x_24 = lean_array_get_size(x_23); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_21 = lean_unsigned_to_nat(0u); +x_22 = l_Lean_Syntax_getArg(x_9, x_21); +lean_dec(x_9); +x_23 = l_Lean_Syntax_getArg(x_1, x_17); +x_24 = lean_unsigned_to_nat(3u); +x_25 = l_Lean_Syntax_getArg(x_1, x_24); +x_26 = l_Lean_Elab_Term_expandShow___closed__3; +lean_inc(x_25); +x_27 = l_Lean_Syntax_isOfKind(x_25, x_26); +if (x_27 == 0) +{ +lean_object* x_28; uint8_t x_29; +x_28 = l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__2; +lean_inc(x_25); +x_29 = l_Lean_Syntax_isOfKind(x_25, x_28); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; +lean_dec(x_25); lean_dec(x_23); -x_25 = lean_unsigned_to_nat(2u); -x_26 = lean_nat_dec_eq(x_24, x_25); -lean_dec(x_24); -if (x_26 == 0) -{ -lean_object* x_27; lean_object* x_28; -lean_dec(x_17); -lean_dec(x_11); -x_27 = lean_box(1); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_3); -return x_28; +lean_dec(x_22); +lean_dec(x_1); +x_30 = lean_box(1); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_3); +return x_31; } 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; uint8_t x_35; -x_29 = lean_unsigned_to_nat(0u); -x_30 = l_Lean_Syntax_getArg(x_17, x_29); -lean_dec(x_17); -x_31 = l_Lean_Syntax_getArg(x_11, x_25); -x_32 = lean_unsigned_to_nat(3u); -x_33 = l_Lean_Syntax_getArg(x_11, x_32); -x_34 = l_Lean_Elab_Term_expandShow___closed__3; -lean_inc(x_33); -x_35 = l_Lean_Syntax_isOfKind(x_33, x_34); -if (x_35 == 0) +lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_32 = l_Lean_Syntax_getArg(x_25, x_8); +lean_dec(x_25); +x_33 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_13592____closed__3; +lean_inc(x_32); +x_34 = l_Lean_Syntax_isOfKind(x_32, x_33); +if (x_34 == 0) { -lean_object* x_36; uint8_t x_37; -x_36 = l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__2; -lean_inc(x_33); -x_37 = l_Lean_Syntax_isOfKind(x_33, x_36); -if (x_37 == 0) -{ -lean_object* x_38; lean_object* x_39; -lean_dec(x_33); -lean_dec(x_31); -lean_dec(x_30); -lean_dec(x_11); -x_38 = lean_box(1); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_3); -return x_39; +lean_object* x_35; lean_object* x_36; +lean_dec(x_32); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_1); +x_35 = lean_box(1); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_3); +return x_36; } else { -lean_object* x_40; lean_object* x_41; uint8_t x_42; -x_40 = l_Lean_Syntax_getArg(x_33, x_16); -lean_dec(x_33); -x_41 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_13592____closed__3; -lean_inc(x_40); -x_42 = l_Lean_Syntax_isOfKind(x_40, x_41); -if (x_42 == 0) +lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_37 = lean_unsigned_to_nat(4u); +x_38 = l_Lean_Syntax_getArg(x_1, x_37); +x_39 = l_Lean_Syntax_isNone(x_38); +if (x_39 == 0) { -lean_object* x_43; lean_object* x_44; -lean_dec(x_40); -lean_dec(x_31); -lean_dec(x_30); -lean_dec(x_11); -x_43 = lean_box(1); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_3); -return x_44; +uint8_t x_40; +lean_inc(x_38); +x_40 = l_Lean_Syntax_isOfKind(x_38, x_11); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; +lean_dec(x_38); +lean_dec(x_32); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_1); +x_41 = lean_box(1); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_3); +return x_42; } else { -lean_object* x_45; uint8_t x_46; -x_45 = l_Lean_Syntax_getArg(x_11, x_10); -x_46 = l_Lean_Syntax_isNone(x_45); -if (x_46 == 0) +lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_43 = l_Lean_Syntax_getArgs(x_38); +lean_dec(x_38); +x_44 = lean_array_get_size(x_43); +lean_dec(x_43); +x_45 = lean_nat_dec_eq(x_44, x_8); +lean_dec(x_44); +if (x_45 == 0) { -uint8_t x_47; -lean_inc(x_45); -x_47 = l_Lean_Syntax_isOfKind(x_45, x_19); -if (x_47 == 0) -{ -lean_object* x_48; lean_object* x_49; -lean_dec(x_45); -lean_dec(x_40); -lean_dec(x_31); -lean_dec(x_30); -lean_dec(x_11); -x_48 = lean_box(1); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_3); -return x_49; +lean_object* x_46; lean_object* x_47; +lean_dec(x_32); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_1); +x_46 = lean_box(1); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_3); +return x_47; } else { -lean_object* x_50; lean_object* x_51; uint8_t x_52; -x_50 = l_Lean_Syntax_getArgs(x_45); -lean_dec(x_45); -x_51 = lean_array_get_size(x_50); -lean_dec(x_50); -x_52 = lean_nat_dec_eq(x_51, x_16); -lean_dec(x_51); -if (x_52 == 0) -{ -lean_object* x_53; lean_object* x_54; -lean_dec(x_40); -lean_dec(x_31); -lean_dec(x_30); -lean_dec(x_11); -x_53 = lean_box(1); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_3); -return x_54; -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_55 = lean_unsigned_to_nat(5u); -x_56 = l_Lean_Syntax_getArg(x_11, x_55); -lean_dec(x_11); -x_57 = l_Lean_Syntax_mkApp___closed__1; -x_58 = lean_array_push(x_57, x_30); -x_59 = l_myMacro____x40_Init_Notation___hyg_12176____closed__10; -x_60 = lean_array_push(x_58, x_59); -x_61 = l_Array_empty___closed__1; -x_62 = l_Array_appendCore___rarg(x_61, x_60); -lean_dec(x_60); -x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_19); -lean_ctor_set(x_63, 1, x_62); -x_64 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_15583____closed__2; -x_65 = lean_array_push(x_64, x_63); -x_66 = lean_array_push(x_65, x_31); -x_67 = l_Lean_Elab_Term_expandShow___closed__8; -x_68 = lean_array_push(x_67, x_56); -x_69 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_69, 0, x_34); -lean_ctor_set(x_69, 1, x_68); -x_70 = lean_array_push(x_66, x_69); -x_71 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; -x_72 = lean_array_push(x_70, x_71); -x_73 = l_Lean_Elab_Term_expandShow___closed__11; -x_74 = lean_array_push(x_73, x_40); -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_36); -lean_ctor_set(x_75, 1, x_74); -x_76 = lean_array_push(x_72, x_75); -x_77 = l_Lean_Elab_Term_expandHave___closed__1; -x_78 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_76); -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_78); -lean_ctor_set(x_79, 1, x_3); -return x_79; +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_48 = lean_unsigned_to_nat(5u); +x_49 = l_Lean_Syntax_getArg(x_1, x_48); +lean_dec(x_1); +x_50 = l_Lean_Syntax_mkApp___closed__1; +x_51 = lean_array_push(x_50, x_22); +x_52 = l_myMacro____x40_Init_Notation___hyg_12176____closed__10; +x_53 = lean_array_push(x_51, x_52); +x_54 = l_Array_empty___closed__1; +x_55 = l_Array_appendCore___rarg(x_54, x_53); +lean_dec(x_53); +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_11); +lean_ctor_set(x_56, 1, x_55); +x_57 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_15583____closed__2; +x_58 = lean_array_push(x_57, x_56); +x_59 = lean_array_push(x_58, x_23); +x_60 = l_Lean_Elab_Term_expandShow___closed__8; +x_61 = lean_array_push(x_60, x_49); +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_26); +lean_ctor_set(x_62, 1, x_61); +x_63 = lean_array_push(x_59, x_62); +x_64 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; +x_65 = lean_array_push(x_63, x_64); +x_66 = l_Lean_Elab_Term_expandShow___closed__11; +x_67 = lean_array_push(x_66, x_32); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_28); +lean_ctor_set(x_68, 1, x_67); +x_69 = lean_array_push(x_65, x_68); +x_70 = l_Lean_Elab_Term_expandHave___closed__1; +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_69); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_3); +return x_72; } } } else { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -lean_dec(x_45); -x_80 = lean_unsigned_to_nat(5u); -x_81 = l_Lean_Syntax_getArg(x_11, x_80); -lean_dec(x_11); -x_82 = l_Lean_Syntax_mkApp___closed__1; -x_83 = lean_array_push(x_82, x_30); -x_84 = l_myMacro____x40_Init_Notation___hyg_12176____closed__10; -x_85 = lean_array_push(x_83, x_84); -x_86 = l_Array_empty___closed__1; -x_87 = l_Array_appendCore___rarg(x_86, x_85); -lean_dec(x_85); -x_88 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_88, 0, x_19); -lean_ctor_set(x_88, 1, x_87); -x_89 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_15583____closed__2; -x_90 = lean_array_push(x_89, x_88); -x_91 = lean_array_push(x_90, x_31); -x_92 = l_Lean_Elab_Term_expandShow___closed__8; -x_93 = lean_array_push(x_92, x_81); -x_94 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_94, 0, x_34); -lean_ctor_set(x_94, 1, x_93); -x_95 = lean_array_push(x_91, x_94); -x_96 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; -x_97 = lean_array_push(x_95, x_96); -x_98 = l_Lean_Elab_Term_expandShow___closed__11; -x_99 = lean_array_push(x_98, x_40); -x_100 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_100, 0, x_36); -lean_ctor_set(x_100, 1, x_99); -x_101 = lean_array_push(x_97, x_100); -x_102 = l_Lean_Elab_Term_expandHave___closed__1; -x_103 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_103, 0, x_102); -lean_ctor_set(x_103, 1, x_101); -x_104 = lean_alloc_ctor(0, 2, 0); +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +lean_dec(x_38); +x_73 = lean_unsigned_to_nat(5u); +x_74 = l_Lean_Syntax_getArg(x_1, x_73); +lean_dec(x_1); +x_75 = l_Lean_Syntax_mkApp___closed__1; +x_76 = lean_array_push(x_75, x_22); +x_77 = l_myMacro____x40_Init_Notation___hyg_12176____closed__10; +x_78 = lean_array_push(x_76, x_77); +x_79 = l_Array_empty___closed__1; +x_80 = l_Array_appendCore___rarg(x_79, x_78); +lean_dec(x_78); +x_81 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_81, 0, x_11); +lean_ctor_set(x_81, 1, x_80); +x_82 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_15583____closed__2; +x_83 = lean_array_push(x_82, x_81); +x_84 = lean_array_push(x_83, x_23); +x_85 = l_Lean_Elab_Term_expandShow___closed__8; +x_86 = lean_array_push(x_85, x_74); +x_87 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_87, 0, x_26); +lean_ctor_set(x_87, 1, x_86); +x_88 = lean_array_push(x_84, x_87); +x_89 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; +x_90 = lean_array_push(x_88, x_89); +x_91 = l_Lean_Elab_Term_expandShow___closed__11; +x_92 = lean_array_push(x_91, x_32); +x_93 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_93, 0, x_28); +lean_ctor_set(x_93, 1, x_92); +x_94 = lean_array_push(x_90, x_93); +x_95 = l_Lean_Elab_Term_expandHave___closed__1; +x_96 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_94); +x_97 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_97, 0, x_96); +lean_ctor_set(x_97, 1, x_3); +return x_97; +} +} +} +} +else +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; +x_98 = l_Lean_Syntax_getArg(x_25, x_8); +lean_dec(x_25); +x_99 = lean_unsigned_to_nat(4u); +x_100 = l_Lean_Syntax_getArg(x_1, x_99); +x_101 = l_Lean_Syntax_isNone(x_100); +if (x_101 == 0) +{ +uint8_t x_102; +lean_inc(x_100); +x_102 = l_Lean_Syntax_isOfKind(x_100, x_11); +if (x_102 == 0) +{ +lean_object* x_103; lean_object* x_104; +lean_dec(x_100); +lean_dec(x_98); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_1); +x_103 = lean_box(1); +x_104 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_104, 0, x_103); lean_ctor_set(x_104, 1, x_3); return x_104; } -} -} -} else { lean_object* x_105; lean_object* x_106; uint8_t x_107; -x_105 = l_Lean_Syntax_getArg(x_33, x_16); -lean_dec(x_33); -x_106 = l_Lean_Syntax_getArg(x_11, x_10); -x_107 = l_Lean_Syntax_isNone(x_106); +x_105 = l_Lean_Syntax_getArgs(x_100); +lean_dec(x_100); +x_106 = lean_array_get_size(x_105); +lean_dec(x_105); +x_107 = lean_nat_dec_eq(x_106, x_8); +lean_dec(x_106); if (x_107 == 0) { -uint8_t x_108; -lean_inc(x_106); -x_108 = l_Lean_Syntax_isOfKind(x_106, x_19); -if (x_108 == 0) -{ -lean_object* x_109; lean_object* x_110; -lean_dec(x_106); -lean_dec(x_105); -lean_dec(x_31); -lean_dec(x_30); -lean_dec(x_11); -x_109 = lean_box(1); -x_110 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_110, 0, x_109); -lean_ctor_set(x_110, 1, x_3); -return x_110; +lean_object* x_108; lean_object* x_109; +lean_dec(x_98); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_1); +x_108 = lean_box(1); +x_109 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_3); +return x_109; } else { -lean_object* x_111; lean_object* x_112; uint8_t x_113; -x_111 = l_Lean_Syntax_getArgs(x_106); -lean_dec(x_106); -x_112 = lean_array_get_size(x_111); -lean_dec(x_111); -x_113 = lean_nat_dec_eq(x_112, x_16); -lean_dec(x_112); -if (x_113 == 0) -{ -lean_object* x_114; lean_object* x_115; -lean_dec(x_105); -lean_dec(x_31); -lean_dec(x_30); -lean_dec(x_11); -x_114 = lean_box(1); -x_115 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_115, 0, x_114); -lean_ctor_set(x_115, 1, x_3); -return x_115; -} -else -{ -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; -x_116 = lean_unsigned_to_nat(5u); -x_117 = l_Lean_Syntax_getArg(x_11, x_116); -lean_dec(x_11); -x_118 = l_Lean_Syntax_mkApp___closed__1; -x_119 = lean_array_push(x_118, x_30); -x_120 = l_myMacro____x40_Init_Notation___hyg_12176____closed__10; -x_121 = lean_array_push(x_119, x_120); -x_122 = l_Array_empty___closed__1; -x_123 = l_Array_appendCore___rarg(x_122, x_121); -lean_dec(x_121); +lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_110 = lean_unsigned_to_nat(5u); +x_111 = l_Lean_Syntax_getArg(x_1, x_110); +lean_dec(x_1); +x_112 = l_Lean_Syntax_mkApp___closed__1; +x_113 = lean_array_push(x_112, x_22); +x_114 = l_myMacro____x40_Init_Notation___hyg_12176____closed__10; +x_115 = lean_array_push(x_113, x_114); +x_116 = l_Array_empty___closed__1; +x_117 = l_Array_appendCore___rarg(x_116, x_115); +lean_dec(x_115); +x_118 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_118, 0, x_11); +lean_ctor_set(x_118, 1, x_117); +x_119 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_15583____closed__2; +x_120 = lean_array_push(x_119, x_118); +x_121 = lean_array_push(x_120, x_23); +x_122 = l_Lean_Elab_Term_expandShow___closed__8; +x_123 = lean_array_push(x_122, x_111); x_124 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_124, 0, x_19); +lean_ctor_set(x_124, 0, x_26); lean_ctor_set(x_124, 1, x_123); -x_125 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_15583____closed__2; -x_126 = lean_array_push(x_125, x_124); -x_127 = lean_array_push(x_126, x_31); -x_128 = l_Lean_Elab_Term_expandShow___closed__8; -x_129 = lean_array_push(x_128, x_117); +x_125 = lean_array_push(x_121, x_124); +x_126 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; +x_127 = lean_array_push(x_125, x_126); +x_128 = lean_array_push(x_127, x_98); +x_129 = l_Lean_Elab_Term_expandHave___closed__1; x_130 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_130, 0, x_34); -lean_ctor_set(x_130, 1, x_129); -x_131 = lean_array_push(x_127, x_130); -x_132 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; -x_133 = lean_array_push(x_131, x_132); -x_134 = lean_array_push(x_133, x_105); -x_135 = l_Lean_Elab_Term_expandHave___closed__1; -x_136 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_136, 0, x_135); -lean_ctor_set(x_136, 1, x_134); -x_137 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_137, 0, x_136); -lean_ctor_set(x_137, 1, x_3); -return x_137; +lean_ctor_set(x_130, 0, x_129); +lean_ctor_set(x_130, 1, x_128); +x_131 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_131, 0, x_130); +lean_ctor_set(x_131, 1, x_3); +return x_131; } } } else { -lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; -lean_dec(x_106); -x_138 = lean_unsigned_to_nat(5u); -x_139 = l_Lean_Syntax_getArg(x_11, x_138); -lean_dec(x_11); -x_140 = l_Lean_Syntax_mkApp___closed__1; -x_141 = lean_array_push(x_140, x_30); -x_142 = l_myMacro____x40_Init_Notation___hyg_12176____closed__10; -x_143 = lean_array_push(x_141, x_142); -x_144 = l_Array_empty___closed__1; -x_145 = l_Array_appendCore___rarg(x_144, x_143); -lean_dec(x_143); +lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +lean_dec(x_100); +x_132 = lean_unsigned_to_nat(5u); +x_133 = l_Lean_Syntax_getArg(x_1, x_132); +lean_dec(x_1); +x_134 = l_Lean_Syntax_mkApp___closed__1; +x_135 = lean_array_push(x_134, x_22); +x_136 = l_myMacro____x40_Init_Notation___hyg_12176____closed__10; +x_137 = lean_array_push(x_135, x_136); +x_138 = l_Array_empty___closed__1; +x_139 = l_Array_appendCore___rarg(x_138, x_137); +lean_dec(x_137); +x_140 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_140, 0, x_11); +lean_ctor_set(x_140, 1, x_139); +x_141 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_15583____closed__2; +x_142 = lean_array_push(x_141, x_140); +x_143 = lean_array_push(x_142, x_23); +x_144 = l_Lean_Elab_Term_expandShow___closed__8; +x_145 = lean_array_push(x_144, x_133); x_146 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_146, 0, x_19); +lean_ctor_set(x_146, 0, x_26); lean_ctor_set(x_146, 1, x_145); -x_147 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_15583____closed__2; -x_148 = lean_array_push(x_147, x_146); -x_149 = lean_array_push(x_148, x_31); -x_150 = l_Lean_Elab_Term_expandShow___closed__8; -x_151 = lean_array_push(x_150, x_139); +x_147 = lean_array_push(x_143, x_146); +x_148 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; +x_149 = lean_array_push(x_147, x_148); +x_150 = lean_array_push(x_149, x_98); +x_151 = l_Lean_Elab_Term_expandHave___closed__1; x_152 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_152, 0, x_34); -lean_ctor_set(x_152, 1, x_151); -x_153 = lean_array_push(x_149, x_152); -x_154 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; -x_155 = lean_array_push(x_153, x_154); -x_156 = lean_array_push(x_155, x_105); -x_157 = l_Lean_Elab_Term_expandHave___closed__1; -x_158 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_158, 0, x_157); -lean_ctor_set(x_158, 1, x_156); -x_159 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_159, 0, x_158); -lean_ctor_set(x_159, 1, x_3); -return x_159; +lean_ctor_set(x_152, 0, x_151); +lean_ctor_set(x_152, 1, x_150); +x_153 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_153, 0, x_152); +lean_ctor_set(x_153, 1, x_3); +return x_153; } } } @@ -3572,71 +3556,93 @@ return x_159; } else { -lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; uint8_t x_165; -lean_dec(x_17); -x_160 = lean_unsigned_to_nat(2u); -x_161 = l_Lean_Syntax_getArg(x_11, x_160); -x_162 = lean_unsigned_to_nat(3u); -x_163 = l_Lean_Syntax_getArg(x_11, x_162); -x_164 = l_Lean_Elab_Term_expandShow___closed__3; -lean_inc(x_163); -x_165 = l_Lean_Syntax_isOfKind(x_163, x_164); -if (x_165 == 0) +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; +lean_dec(x_9); +x_154 = lean_unsigned_to_nat(2u); +x_155 = l_Lean_Syntax_getArg(x_1, x_154); +x_156 = lean_unsigned_to_nat(3u); +x_157 = l_Lean_Syntax_getArg(x_1, x_156); +x_158 = l_Lean_Elab_Term_expandShow___closed__3; +lean_inc(x_157); +x_159 = l_Lean_Syntax_isOfKind(x_157, x_158); +if (x_159 == 0) { -lean_object* x_166; uint8_t x_167; -x_166 = l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__2; -lean_inc(x_163); -x_167 = l_Lean_Syntax_isOfKind(x_163, x_166); -if (x_167 == 0) +lean_object* x_160; uint8_t x_161; +x_160 = l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__2; +lean_inc(x_157); +x_161 = l_Lean_Syntax_isOfKind(x_157, x_160); +if (x_161 == 0) { -lean_object* x_168; lean_object* x_169; -lean_dec(x_163); -lean_dec(x_161); -lean_dec(x_11); -x_168 = lean_box(1); -x_169 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_169, 0, x_168); -lean_ctor_set(x_169, 1, x_3); -return x_169; +lean_object* x_162; lean_object* x_163; +lean_dec(x_157); +lean_dec(x_155); +lean_dec(x_1); +x_162 = lean_box(1); +x_163 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_163, 0, x_162); +lean_ctor_set(x_163, 1, x_3); +return x_163; } else { -lean_object* x_170; lean_object* x_171; uint8_t x_172; -x_170 = l_Lean_Syntax_getArg(x_163, x_16); -lean_dec(x_163); -x_171 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_13592____closed__3; +lean_object* x_164; lean_object* x_165; uint8_t x_166; +x_164 = l_Lean_Syntax_getArg(x_157, x_8); +lean_dec(x_157); +x_165 = l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_13592____closed__3; +lean_inc(x_164); +x_166 = l_Lean_Syntax_isOfKind(x_164, x_165); +if (x_166 == 0) +{ +lean_object* x_167; lean_object* x_168; +lean_dec(x_164); +lean_dec(x_155); +lean_dec(x_1); +x_167 = lean_box(1); +x_168 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_168, 0, x_167); +lean_ctor_set(x_168, 1, x_3); +return x_168; +} +else +{ +lean_object* x_169; lean_object* x_170; uint8_t x_171; +x_169 = lean_unsigned_to_nat(4u); +x_170 = l_Lean_Syntax_getArg(x_1, x_169); +x_171 = l_Lean_Syntax_isNone(x_170); +if (x_171 == 0) +{ +lean_object* x_172; uint8_t x_173; +x_172 = l_Lean_nullKind___closed__2; lean_inc(x_170); -x_172 = l_Lean_Syntax_isOfKind(x_170, x_171); -if (x_172 == 0) +x_173 = l_Lean_Syntax_isOfKind(x_170, x_172); +if (x_173 == 0) { -lean_object* x_173; lean_object* x_174; +lean_object* x_174; lean_object* x_175; lean_dec(x_170); -lean_dec(x_161); -lean_dec(x_11); -x_173 = lean_box(1); -x_174 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_174, 0, x_173); -lean_ctor_set(x_174, 1, x_3); -return x_174; +lean_dec(x_164); +lean_dec(x_155); +lean_dec(x_1); +x_174 = lean_box(1); +x_175 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_175, 0, x_174); +lean_ctor_set(x_175, 1, x_3); +return x_175; } else { -lean_object* x_175; uint8_t x_176; -x_175 = l_Lean_Syntax_getArg(x_11, x_10); -x_176 = l_Lean_Syntax_isNone(x_175); -if (x_176 == 0) -{ -lean_object* x_177; uint8_t x_178; -x_177 = l_Lean_nullKind___closed__2; -lean_inc(x_175); -x_178 = l_Lean_Syntax_isOfKind(x_175, x_177); +lean_object* x_176; lean_object* x_177; uint8_t x_178; +x_176 = l_Lean_Syntax_getArgs(x_170); +lean_dec(x_170); +x_177 = lean_array_get_size(x_176); +lean_dec(x_176); +x_178 = lean_nat_dec_eq(x_177, x_8); +lean_dec(x_177); if (x_178 == 0) { lean_object* x_179; lean_object* x_180; -lean_dec(x_175); -lean_dec(x_170); -lean_dec(x_161); -lean_dec(x_11); +lean_dec(x_164); +lean_dec(x_155); +lean_dec(x_1); x_179 = lean_box(1); x_180 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_180, 0, x_179); @@ -3645,194 +3651,174 @@ return x_180; } else { -lean_object* x_181; lean_object* x_182; uint8_t x_183; -x_181 = l_Lean_Syntax_getArgs(x_175); -lean_dec(x_175); -x_182 = lean_array_get_size(x_181); -lean_dec(x_181); -x_183 = lean_nat_dec_eq(x_182, x_16); -lean_dec(x_182); -if (x_183 == 0) +lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; +x_181 = lean_unsigned_to_nat(5u); +x_182 = l_Lean_Syntax_getArg(x_1, x_181); +lean_dec(x_1); +x_183 = l_Lean_Elab_Term_expandHave___closed__2; +x_184 = lean_array_push(x_183, x_155); +x_185 = l_Lean_Elab_Term_expandShow___closed__8; +x_186 = lean_array_push(x_185, x_182); +x_187 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_187, 0, x_158); +lean_ctor_set(x_187, 1, x_186); +x_188 = lean_array_push(x_184, x_187); +x_189 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; +x_190 = lean_array_push(x_188, x_189); +x_191 = l_Lean_Elab_Term_expandShow___closed__11; +x_192 = lean_array_push(x_191, x_164); +x_193 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_193, 0, x_160); +lean_ctor_set(x_193, 1, x_192); +x_194 = lean_array_push(x_190, x_193); +x_195 = l_Lean_Elab_Term_expandHave___closed__1; +x_196 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_196, 0, x_195); +lean_ctor_set(x_196, 1, x_194); +x_197 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_197, 0, x_196); +lean_ctor_set(x_197, 1, x_3); +return x_197; +} +} +} +else { -lean_object* x_184; lean_object* x_185; +lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_dec(x_170); -lean_dec(x_161); -lean_dec(x_11); -x_184 = lean_box(1); -x_185 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_185, 0, x_184); -lean_ctor_set(x_185, 1, x_3); -return x_185; -} -else -{ -lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; -x_186 = lean_unsigned_to_nat(5u); -x_187 = l_Lean_Syntax_getArg(x_11, x_186); -lean_dec(x_11); -x_188 = l_Lean_Elab_Term_expandHave___closed__2; -x_189 = lean_array_push(x_188, x_161); -x_190 = l_Lean_Elab_Term_expandShow___closed__8; -x_191 = lean_array_push(x_190, x_187); -x_192 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_192, 0, x_164); -lean_ctor_set(x_192, 1, x_191); -x_193 = lean_array_push(x_189, x_192); -x_194 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; -x_195 = lean_array_push(x_193, x_194); -x_196 = l_Lean_Elab_Term_expandShow___closed__11; -x_197 = lean_array_push(x_196, x_170); -x_198 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_198, 0, x_166); -lean_ctor_set(x_198, 1, x_197); -x_199 = lean_array_push(x_195, x_198); -x_200 = l_Lean_Elab_Term_expandHave___closed__1; -x_201 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_201, 0, x_200); -lean_ctor_set(x_201, 1, x_199); -x_202 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_202, 0, x_201); -lean_ctor_set(x_202, 1, x_3); -return x_202; -} -} -} -else -{ -lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; -lean_dec(x_175); -x_203 = lean_unsigned_to_nat(5u); -x_204 = l_Lean_Syntax_getArg(x_11, x_203); -lean_dec(x_11); -x_205 = l_Lean_Elab_Term_expandHave___closed__2; -x_206 = lean_array_push(x_205, x_161); -x_207 = l_Lean_Elab_Term_expandShow___closed__8; -x_208 = lean_array_push(x_207, x_204); -x_209 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_209, 0, x_164); -lean_ctor_set(x_209, 1, x_208); -x_210 = lean_array_push(x_206, x_209); -x_211 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; -x_212 = lean_array_push(x_210, x_211); -x_213 = l_Lean_Elab_Term_expandShow___closed__11; -x_214 = lean_array_push(x_213, x_170); -x_215 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_215, 0, x_166); -lean_ctor_set(x_215, 1, x_214); -x_216 = lean_array_push(x_212, x_215); -x_217 = l_Lean_Elab_Term_expandHave___closed__1; -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_alloc_ctor(0, 2, 0); -lean_ctor_set(x_219, 0, x_218); -lean_ctor_set(x_219, 1, x_3); -return x_219; +x_198 = lean_unsigned_to_nat(5u); +x_199 = l_Lean_Syntax_getArg(x_1, x_198); +lean_dec(x_1); +x_200 = l_Lean_Elab_Term_expandHave___closed__2; +x_201 = lean_array_push(x_200, x_155); +x_202 = l_Lean_Elab_Term_expandShow___closed__8; +x_203 = lean_array_push(x_202, x_199); +x_204 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_204, 0, x_158); +lean_ctor_set(x_204, 1, x_203); +x_205 = lean_array_push(x_201, x_204); +x_206 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; +x_207 = lean_array_push(x_205, x_206); +x_208 = l_Lean_Elab_Term_expandShow___closed__11; +x_209 = lean_array_push(x_208, x_164); +x_210 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_210, 0, x_160); +lean_ctor_set(x_210, 1, x_209); +x_211 = lean_array_push(x_207, x_210); +x_212 = l_Lean_Elab_Term_expandHave___closed__1; +x_213 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_213, 0, x_212); +lean_ctor_set(x_213, 1, x_211); +x_214 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_214, 0, x_213); +lean_ctor_set(x_214, 1, x_3); +return x_214; } } } } else { -lean_object* x_220; lean_object* x_221; uint8_t x_222; -x_220 = l_Lean_Syntax_getArg(x_163, x_16); -lean_dec(x_163); -x_221 = l_Lean_Syntax_getArg(x_11, x_10); -x_222 = l_Lean_Syntax_isNone(x_221); -if (x_222 == 0) +lean_object* x_215; lean_object* x_216; lean_object* x_217; uint8_t x_218; +x_215 = l_Lean_Syntax_getArg(x_157, x_8); +lean_dec(x_157); +x_216 = lean_unsigned_to_nat(4u); +x_217 = l_Lean_Syntax_getArg(x_1, x_216); +x_218 = l_Lean_Syntax_isNone(x_217); +if (x_218 == 0) { -lean_object* x_223; uint8_t x_224; -x_223 = l_Lean_nullKind___closed__2; -lean_inc(x_221); -x_224 = l_Lean_Syntax_isOfKind(x_221, x_223); -if (x_224 == 0) +lean_object* x_219; uint8_t x_220; +x_219 = l_Lean_nullKind___closed__2; +lean_inc(x_217); +x_220 = l_Lean_Syntax_isOfKind(x_217, x_219); +if (x_220 == 0) { -lean_object* x_225; lean_object* x_226; -lean_dec(x_221); -lean_dec(x_220); -lean_dec(x_161); -lean_dec(x_11); -x_225 = lean_box(1); -x_226 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_226, 0, x_225); -lean_ctor_set(x_226, 1, x_3); -return x_226; +lean_object* x_221; lean_object* x_222; +lean_dec(x_217); +lean_dec(x_215); +lean_dec(x_155); +lean_dec(x_1); +x_221 = lean_box(1); +x_222 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_222, 0, x_221); +lean_ctor_set(x_222, 1, x_3); +return x_222; } else { -lean_object* x_227; lean_object* x_228; uint8_t x_229; -x_227 = l_Lean_Syntax_getArgs(x_221); -lean_dec(x_221); -x_228 = lean_array_get_size(x_227); -lean_dec(x_227); -x_229 = lean_nat_dec_eq(x_228, x_16); -lean_dec(x_228); -if (x_229 == 0) +lean_object* x_223; lean_object* x_224; uint8_t x_225; +x_223 = l_Lean_Syntax_getArgs(x_217); +lean_dec(x_217); +x_224 = lean_array_get_size(x_223); +lean_dec(x_223); +x_225 = lean_nat_dec_eq(x_224, x_8); +lean_dec(x_224); +if (x_225 == 0) { -lean_object* x_230; lean_object* x_231; -lean_dec(x_220); -lean_dec(x_161); -lean_dec(x_11); -x_230 = lean_box(1); -x_231 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_231, 0, x_230); -lean_ctor_set(x_231, 1, x_3); -return x_231; +lean_object* x_226; lean_object* x_227; +lean_dec(x_215); +lean_dec(x_155); +lean_dec(x_1); +x_226 = lean_box(1); +x_227 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_227, 0, x_226); +lean_ctor_set(x_227, 1, x_3); +return x_227; } else { -lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; -x_232 = lean_unsigned_to_nat(5u); -x_233 = l_Lean_Syntax_getArg(x_11, x_232); -lean_dec(x_11); -x_234 = l_Lean_Elab_Term_expandHave___closed__2; -x_235 = lean_array_push(x_234, x_161); -x_236 = l_Lean_Elab_Term_expandShow___closed__8; -x_237 = lean_array_push(x_236, x_233); -x_238 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_238, 0, x_164); -lean_ctor_set(x_238, 1, x_237); -x_239 = lean_array_push(x_235, x_238); -x_240 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; -x_241 = lean_array_push(x_239, x_240); -x_242 = lean_array_push(x_241, x_220); -x_243 = l_Lean_Elab_Term_expandHave___closed__1; -x_244 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_244, 0, x_243); -lean_ctor_set(x_244, 1, x_242); -x_245 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_245, 0, x_244); -lean_ctor_set(x_245, 1, x_3); -return x_245; +lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; +x_228 = lean_unsigned_to_nat(5u); +x_229 = l_Lean_Syntax_getArg(x_1, x_228); +lean_dec(x_1); +x_230 = l_Lean_Elab_Term_expandHave___closed__2; +x_231 = lean_array_push(x_230, x_155); +x_232 = l_Lean_Elab_Term_expandShow___closed__8; +x_233 = lean_array_push(x_232, x_229); +x_234 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_234, 0, x_158); +lean_ctor_set(x_234, 1, x_233); +x_235 = lean_array_push(x_231, x_234); +x_236 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; +x_237 = lean_array_push(x_235, x_236); +x_238 = lean_array_push(x_237, x_215); +x_239 = l_Lean_Elab_Term_expandHave___closed__1; +x_240 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_240, 0, x_239); +lean_ctor_set(x_240, 1, x_238); +x_241 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_241, 0, x_240); +lean_ctor_set(x_241, 1, x_3); +return x_241; } } } else { -lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; -lean_dec(x_221); -x_246 = lean_unsigned_to_nat(5u); -x_247 = l_Lean_Syntax_getArg(x_11, x_246); -lean_dec(x_11); -x_248 = l_Lean_Elab_Term_expandHave___closed__2; -x_249 = lean_array_push(x_248, x_161); -x_250 = l_Lean_Elab_Term_expandShow___closed__8; -x_251 = lean_array_push(x_250, x_247); -x_252 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_252, 0, x_164); -lean_ctor_set(x_252, 1, x_251); -x_253 = lean_array_push(x_249, x_252); -x_254 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; -x_255 = lean_array_push(x_253, x_254); -x_256 = lean_array_push(x_255, x_220); -x_257 = l_Lean_Elab_Term_expandHave___closed__1; -x_258 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_258, 0, x_257); -lean_ctor_set(x_258, 1, x_256); -x_259 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_259, 0, x_258); -lean_ctor_set(x_259, 1, x_3); -return x_259; +lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; +lean_dec(x_217); +x_242 = lean_unsigned_to_nat(5u); +x_243 = l_Lean_Syntax_getArg(x_1, x_242); +lean_dec(x_1); +x_244 = l_Lean_Elab_Term_expandHave___closed__2; +x_245 = lean_array_push(x_244, x_155); +x_246 = l_Lean_Elab_Term_expandShow___closed__8; +x_247 = lean_array_push(x_246, x_243); +x_248 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_248, 0, x_158); +lean_ctor_set(x_248, 1, x_247); +x_249 = lean_array_push(x_245, x_248); +x_250 = l_myMacro____x40_Init_Notation___hyg_12803____closed__18; +x_251 = lean_array_push(x_249, x_250); +x_252 = lean_array_push(x_251, x_215); +x_253 = l_Lean_Elab_Term_expandHave___closed__1; +x_254 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_254, 0, x_253); +lean_ctor_set(x_254, 1, x_252); +x_255 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_255, 0, x_254); +lean_ctor_set(x_255, 1, x_3); +return x_255; } } } diff --git a/stage0/stdlib/Lean/Elab/Command.c b/stage0/stdlib/Lean/Elab/Command.c index b0d18f11a9..fd0c0ab6ad 100644 --- a/stage0/stdlib/Lean/Elab/Command.c +++ b/stage0/stdlib/Lean/Elab/Command.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Elab.Command -// Imports: Init Lean.ResolveName Lean.Meta.Reduce Lean.Elab.Log Lean.Elab.Term Lean.Elab.Binders Lean.Elab.SyntheticMVars Lean.Elab.DeclModifiers +// Imports: Init Lean.Parser.Command Lean.ResolveName Lean.Meta.Reduce Lean.Elab.Log Lean.Elab.Term Lean.Elab.Binders Lean.Elab.SyntheticMVars Lean.Elab.DeclModifiers #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -31,7 +31,6 @@ lean_object* l_Lean_KVMap_setBool(lean_object*, lean_object*, uint8_t); lean_object* l_Lean_Elab_Command_elabSection(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabInitQuot_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addNamespace(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabEval___closed__3; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___spec__4(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instInhabitedState; lean_object* l_Lean_extractMacroScopes(lean_object*); @@ -54,7 +53,6 @@ lean_object* l_List_foldl___at_Lean_Elab_addMacroStack___spec__1(lean_object*, l lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_instAddErrorMessageContextCommandElabM___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; -lean_object* l_Lean_Elab_Command_elabOpen___closed__5; lean_object* l_Lean_Elab_Command_instAddMessageContextCommandElabM___closed__1; lean_object* l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_nullKind; @@ -77,7 +75,6 @@ lean_object* lean_array_uget(lean_object*, size_t); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_checkAnonymousScope_match__1(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_io_error_to_string(lean_object*); -lean_object* l_Lean_Elab_Command_elabSection___closed__2; uint8_t l_Lean_Expr_isSyntheticSorry(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabUniverses___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__2; @@ -104,7 +101,6 @@ lean_object* l_Lean_Elab_Command_getScope___boxed(lean_object*); lean_object* l_Lean_Elab_Command_elabUniverse(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_identKind___closed__2; lean_object* l_Lean_Elab_Command_elabCommand___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__3; lean_object* l_Lean_Elab_Command_elabExport___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__2(lean_object*); lean_object* l_Lean_popScope___at___private_Lean_Elab_Command_0__Lean_Elab_Command_popScopes___spec__1___boxed(lean_object*, lean_object*, lean_object*); @@ -117,7 +113,6 @@ lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Command_runLinters___spec__2(lean_ lean_object* l_Lean_Elab_Command_logUnknownDecl(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlFromMAux___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_mapM___at_Lean_MessageLog_errorsToWarnings___spec__1(lean_object*); -lean_object* l_Lean_Elab_Command_elabSection___closed__1; lean_object* l_Lean_Elab_Command_runTermElabM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__8(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addNamespace___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -134,8 +129,8 @@ lean_object* l___private_Init_Meta_0__Lean_Syntax_isNatLitAux(lean_object*, lean uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_runTermElabM(lean_object*); extern lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___closed__7; +extern lean_object* l_Lean_Parser_Command_section___elambda__1___closed__2; lean_object* l_Std_PersistentArray_append___rarg(lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabExport___closed__2; lean_object* l_Lean_Elab_Command_instMonadRecDepthCommandElabM___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadEnvCommandElabM___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadMacroAdapterCommandElabM; @@ -151,7 +146,6 @@ extern lean_object* l_Std_PersistentArray_empty___closed__1; lean_object* l_Lean_Elab_Command_failIfSucceeds___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getLevelNames___boxed(lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabOpen___closed__1; lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_popScopes___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_private_to_user_name(lean_object*); lean_object* l_Lean_Elab_Command_instMonadResolveNameCommandElabM___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -162,7 +156,6 @@ lean_object* l_Lean_Elab_Command_instMonadQuotationCommandElabM___closed__1; lean_object* l_Lean_Elab_Command_instMonadRefCommandElabM; lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_1147____closed__1; lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabSynth___closed__3; extern lean_object* l_Lean_Syntax_mkAntiquotNode___closed__16; lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Command_addUnivLevel___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabInitQuot___rarg___boxed(lean_object*, lean_object*, lean_object*); @@ -170,7 +163,6 @@ lean_object* l_Lean_Elab_Term_ensureNoUnassignedMVars(lean_object*, lean_object* lean_object* l_Lean_Elab_Command_Context_cmdPos___default; lean_object* l_Lean_Elab_Command_elabReduce___lambda__2___closed__1; lean_object* l_Lean_ofExcept___at_Lean_Elab_Command_elabEvalUnsafe___spec__3(lean_object*); -lean_object* l_Lean_Elab_Command_elabOpen___closed__2; lean_object* l_Lean_Elab_Command_failIfSucceeds___lambda__1___closed__3; lean_object* l___regBuiltin_Lean_Elab_Command_elabVariable(lean_object*); lean_object* l_Lean_Elab_Command_liftTermElabM(lean_object*); @@ -194,6 +186,7 @@ lean_object* l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabVariable lean_object* l___regBuiltin_Lean_Elab_Command_elabExport___closed__1; lean_object* l_Lean_Elab_Command_elabCheck(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); +extern lean_object* l_Lean_Parser_Command_in___elambda__1___closed__2; lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___closed__1; lean_object* l_Lean_Elab_Command_elabUniverse___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -201,7 +194,7 @@ lean_object* l_Lean_Elab_Command_elabSynth___lambda__1(lean_object*, lean_object extern lean_object* l_Array_getEvenElems___rarg___closed__1; extern lean_object* l_Lean_Elab_logException___rarg___lambda__1___closed__2; lean_object* l_Lean_Elab_Command_instMonadOptionsCommandElabM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabVariables___closed__3; +extern lean_object* l_Lean_Parser_Command_init__quot___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadOptionsCommandElabM; lean_object* l___regBuiltin_Lean_Elab_Command_expandInCmd(lean_object*); @@ -235,15 +228,14 @@ lean_object* l_Lean_Elab_Command_State_messages___default; lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_instReprBool___closed__2; lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Command_section___elambda__1___closed__1; lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__2___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing_match__1(lean_object*); lean_object* l_Lean_Elab_Command_instMonadRefCommandElabM___closed__1; lean_object* l_Lean_Elab_Command_failIfSucceeds___lambda__1___closed__2; -lean_object* l_Lean_Elab_Command_elabOpen___closed__3; uint8_t l_USize_decLt(size_t, size_t); lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM; lean_object* l_Lean_Elab_Command_elabOpen(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen___closed__3; lean_object* l_Lean_Elab_Command_expandInCmd___closed__7; lean_object* l_Lean_Elab_Command_instMonadQuotationCommandElabM___closed__2; lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_popScopes(lean_object*, lean_object*, lean_object*, lean_object*); @@ -268,7 +260,6 @@ lean_object* l_Lean_Name_toStringWithSep(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_popScopes___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverses(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__1; -lean_object* l_Lean_Elab_Command_elabOpen___closed__6; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ScopedEnvExtension_popScope___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_liftTermElabM_match__1(lean_object*, lean_object*); @@ -284,7 +275,6 @@ lean_object* l_Lean_Elab_Command_elabSynth(lean_object*, lean_object*, lean_obje lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabExport___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_Lean_Elab_Command_instMonadResolveNameCommandElabM; lean_object* l_Lean_Elab_Command_instMonadResolveNameCommandElabM___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabOpen___closed__4; lean_object* l_Lean_Elab_Command_setOption___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabCommand___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Elab_Command_0__Lean_Elab_Command_checkAnonymousScope(lean_object*); @@ -295,7 +285,6 @@ extern lean_object* l_Lean_NameGenerator_instInhabitedNameGenerator___closed__1; lean_object* l_Lean_ResolveName_resolveNamespace_x3f(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_addOpenDecl(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__2; lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabVariables(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_Elab_Command_elabCommand___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -321,7 +310,6 @@ lean_object* l_Lean_getOptionDecl(lean_object*, lean_object*); extern lean_object* l_Lean_numLitKind; lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabSetOption_match__1(lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabVariable___closed__2; lean_object* l_Lean_Elab_Command_elabExport___closed__3; lean_object* l_Lean_Elab_Command_instMonadEnvCommandElabM___closed__2; lean_object* l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -336,6 +324,7 @@ lean_object* l_Lean_Elab_Command_instMonadOptionsCommandElabM___closed__2; extern lean_object* l_Lean_choiceKind___closed__2; lean_object* l_Lean_Elab_Command_elabCheck___closed__2; lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__9; +extern lean_object* l_Lean_Parser_Command_set__option___elambda__1___closed__2; lean_object* l_Lean_Syntax_isStrLit_x3f(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -349,7 +338,6 @@ lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen___closed__1; lean_object* l___regBuiltin_Lean_Elab_Command_elabVariables___closed__1; lean_object* l_Lean_KernelException_toMessageData(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabCommand_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__2; lean_object* l_Lean_Elab_Command_instMonadOptionsCommandElabM___closed__1; lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_expandDeclId___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_Scope_varDecls___default; @@ -362,6 +350,7 @@ lean_object* l_Lean_Elab_Command_elabSection___boxed(lean_object*, lean_object*, extern lean_object* l_Lean_Elab_Tactic_evalTactic___lambda__1___closed__3; lean_object* l_Lean_Elab_Command_elabEnd___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_State_nextInstIdx___default; +extern lean_object* l_Lean_Parser_Command_eval___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_instMonadRefCommandElabM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); @@ -373,8 +362,8 @@ lean_object* l_Lean_Elab_Command_instInhabitedState___closed__2; lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_popScopes___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__3; lean_object* l_Lean_Elab_Command_elabEval___boxed(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Command_reduce___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_expandDeclId___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabOpenRenaming(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabVariable___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -391,21 +380,18 @@ lean_object* l_Lean_Elab_Command_elabSynth___lambda__2(lean_object*, lean_object lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabOpenHiding___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_liftCoreM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ScopedEnvExtension_pushScope___rarg(lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Command_namespace___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ofExcept___at_Lean_Elab_Command_elabEvalUnsafe___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen___closed__2; extern lean_object* l_Lean_LocalContext_instInhabitedLocalContext___closed__1; lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption(lean_object*); lean_object* l_Lean_ofExcept___at_Lean_Elab_Command_elabEvalUnsafe___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_Lean_Name_hash(lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabVariables___closed__2; -lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__3; lean_object* l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_addOpenDecl___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkMetaContext___closed__2; lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__1(lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__2; lean_object* l_Lean_Elab_Command_instMonadRecDepthCommandElabM___closed__2; lean_object* l___regBuiltin_Lean_Elab_Command_elabCheck___closed__2; lean_object* l_Lean_Elab_getMacros(lean_object*, lean_object*, lean_object*, lean_object*); @@ -460,9 +446,9 @@ lean_object* l_Lean_Elab_Command_elabOpenOnly(lean_object*, lean_object*, lean_o lean_object* l_Lean_Name_getNumParts(lean_object*); lean_object* l_Lean_Elab_Command_hasNoErrorMessages(lean_object*); lean_object* l_Lean_SMap_find_x3f___at_Lean_Elab_Command_elabCommand___spec__1(lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabReduce___closed__3; lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd___closed__1; lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_liftAttrM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Command_variable___elambda__1___closed__2; lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__1; lean_object* l_Lean_Elab_Command_liftCoreM_match__2___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabEvalUnsafe___closed__1; @@ -484,11 +470,11 @@ lean_object* l_Lean_Elab_Command_elabSynth___closed__1; lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_KernelException_toMessageData___closed__15; uint8_t l_Array_isEmpty___rarg(lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2; lean_object* l_Lean_Elab_Command_instMonadQuotationCommandElabM; lean_object* l_Lean_Elab_Command_elabSetOption___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedSyntax; extern lean_object* l_Lean_firstFrontendMacroScope; +extern lean_object* l_Lean_Parser_Command_open___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_12176____closed__22; lean_object* l_Lean_Elab_Command_instMonadRecDepthCommandElabM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -516,7 +502,6 @@ lean_object* l_Lean_compileDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__ lean_object* l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_49____closed__2; lean_object* l_Lean_Elab_Command_elabEnd(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__2; lean_object* l_Lean_Elab_Command_Scope_levelNames___default; lean_object* l_Lean_Elab_Command_modifyScope___closed__1; lean_object* l_Lean_Elab_Command_instMonadResolveNameCommandElabM___closed__6; @@ -542,7 +527,6 @@ lean_object* l_Lean_Elab_Command_elabChoiceAux___boxed(lean_object*, lean_object lean_object* l_Lean_PersistentEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabBinders___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_land(size_t, size_t); -lean_object* l___regBuiltin_Lean_Elab_Command_elabEval___closed__2; lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd(lean_object*); lean_object* l_Lean_Elab_Command_liftCoreM_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__3(lean_object*); @@ -557,6 +541,7 @@ lean_object* l_Lean_Elab_Command_setOption___lambda__1___boxed(lean_object*, lea lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Command_elabCommand___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_drop___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadRecDepthCommandElabM___closed__4; +extern lean_object* l_Lean_Parser_Command_universe___elambda__1___closed__2; lean_object* l_Lean_evalConst___at_Lean_Elab_Command_elabEvalUnsafe___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_popScope___at___private_Lean_Elab_Command_0__Lean_Elab_Command_popScopes___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resetMessageLog(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -573,12 +558,12 @@ lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__4(lean_object*); lean_object* l_Lean_Elab_Command_elabReduce_match__1(lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_checkEndHeader_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_synthInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__3; lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_addUnivLevel___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabExport___closed__2; lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Command_elabCommand___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getSepArgs(lean_object*); +extern lean_object* l_Lean_Parser_Command_end___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_setOption___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadRefCommandElabM___closed__3; extern lean_object* l_Lean_Elab_macroAttribute; @@ -592,6 +577,7 @@ lean_object* l_Lean_Elab_Command_elabVariables___boxed(lean_object*, lean_object lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__8___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__6(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_Parser_Command_end___elambda__1___closed__1; lean_object* l_Lean_Elab_Command_elabExport___closed__1; lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_instAddErrorMessageContextCommandElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabReduce(lean_object*); @@ -610,6 +596,7 @@ lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_ lean_object* l_Lean_Elab_Command_expandInCmd(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__8; lean_object* l_Lean_Elab_Command_elabVariable___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Command_check__failure___elambda__1___closed__2; lean_object* l_Lean_pushScope___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabReduce(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_addUnivLevel___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -658,7 +645,6 @@ lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___lambda__1(lean_objec lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages___spec__10(lean_object*, lean_object*, lean_object*); extern lean_object* l_List_head_x21___rarg___closed__3; lean_object* l_Lean_Elab_Command_failIfSucceeds___closed__4; -lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__3; lean_object* l_Lean_Elab_Command_elabEnd___lambda__1___closed__6; extern lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__2; lean_object* l_Lean_Elab_Command_logUnknownDecl___closed__1; @@ -680,16 +666,17 @@ lean_object* l_Lean_Elab_Command_instMonadResolveNameCommandElabM___lambda__2(le extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_3736____closed__3; extern lean_object* l_Lean_Elab_abortExceptionId; lean_object* l_Lean_Elab_Command_elabOpenHiding___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabNamespace___closed__2; lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScope(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_liftCoreM(lean_object*); +extern lean_object* l_Lean_Parser_Command_export___elambda__1___closed__2; uint8_t l_Lean_Syntax_isNone(lean_object*); lean_object* l_Lean_setEnv___at_Lean_Elab_Term_declareTacticSyntax___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_inferType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe(lean_object*); lean_object* l_Lean_Elab_Command_expandInCmd___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabNamespace(lean_object*); +extern lean_object* l_Lean_Parser_Command_universes___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_elabEnd___closed__3; lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabVariable___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -702,6 +689,7 @@ lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__1___rarg(lean_object*, le lean_object* l_Lean_Elab_Command_instMonadMacroAdapterCommandElabM___closed__3; lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__1; +extern lean_object* l_Lean_Parser_Command_openOnly___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_instMonadRecDepthCommandElabM___closed__5; lean_object* l_Lean_Elab_Command_getMainModule___boxed(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_expandDeclId___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -722,11 +710,13 @@ uint8_t l_Lean_DataValue_sameCtor(lean_object*, lean_object*); lean_object* l_IO_mkRef___at_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_140____spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabCommand_match__1(lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_checkEndHeader___boxed(lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Command_openSimple___elambda__1___closed__2; extern lean_object* l_Lean_Core_instInhabitedState___closed__1; lean_object* l_Lean_Elab_Command_getScopes___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instAddMessageContextCommandElabM; lean_object* l_Lean_Elab_Command_mkMessageAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentD(lean_object*); +extern lean_object* l_Lean_Parser_Command_variables___elambda__1___closed__2; extern lean_object* l_Lean_Elab_unsupportedSyntaxExceptionId; lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkCoreContext(lean_object*, lean_object*); @@ -767,7 +757,6 @@ extern lean_object* l_Lean_Elab_mkMacroAttributeUnsafe___closed__2; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabOpenOnly___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_expandDeclId___at_Lean_Elab_Command_expandDeclId___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages___spec__8(lean_object*, lean_object*, size_t, size_t, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__3; uint8_t l_Std_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(lean_object*); lean_object* l_Lean_Elab_Command_elabEnd___lambda__1___closed__2; lean_object* l_Lean_Elab_Command_expandInCmd___closed__8; @@ -782,7 +771,6 @@ lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabInitQuot(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__1; lean_object* l_Lean_Elab_Command_elabCheck_match__1(lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__2; lean_object* l_Lean_Elab_Command_expandInCmd___closed__4; lean_object* l_Lean_Elab_Command_getScope___rarg(lean_object*, lean_object*); uint8_t l_Lean_Elab_isFreshInstanceName(lean_object*); @@ -801,7 +789,6 @@ lean_object* l_Lean_Elab_Command_elabVariable___lambda__2(lean_object*, lean_obj lean_object* l_Lean_Elab_Term_elabBinder___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse(lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabVariable___closed__3; lean_object* l_Lean_Elab_Command_hasNoErrorMessages___boxed(lean_object*); lean_object* l_Lean_Elab_Command_getScopes___boxed(lean_object*); lean_object* l_Lean_Elab_Command_elabOpenSimple___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -809,6 +796,7 @@ lean_object* l_Lean_setEnv___at_Lean_Elab_Command_elabInitQuot___spec__1___boxed lean_object* l_Lean_Elab_Command_addOpenDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabOpenRenaming___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabOpenOnly___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Command_synth___elambda__1___closed__2; lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabInitQuot_match__1(lean_object*); lean_object* l_Lean_Elab_Command_elabSynth___closed__3; @@ -825,9 +813,9 @@ lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlFr uint8_t l_Lean_Elab_getMacroStackOption(lean_object*); lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_expandDeclId___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_liftTermElabM___rarg___closed__1; -lean_object* l_Lean_Elab_Command_elabNamespace___closed__1; extern lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_891____closed__1; lean_object* l_Lean_ScopedEnvExtension_activateScoped___rarg(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Command_openHiding___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___closed__5; lean_object* l_Lean_Elab_Command_elabEnd___lambda__1___closed__3; @@ -836,23 +824,18 @@ extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__2___clo lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_expandDeclId___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadLogCommandElabM___closed__7; lean_object* l_Std_PersistentArray_foldlM___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabReduce___closed__2; -lean_object* l___regBuiltin_Lean_Elab_Command_elabSynth___closed__2; extern lean_object* l_instReprChar___closed__1; lean_object* l_Lean_Elab_Command_elabInitQuot___boxed(lean_object*); lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Command_runLinters___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__3; lean_object* l_Lean_Elab_Command_instMonadLiftTIOCommandElabM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__2; lean_object* l_Lean_Elab_Command_instInhabitedScope___closed__1; extern lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFns___closed__2; lean_object* l_Lean_Elab_Term_withAutoBoundImplicitLocal___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd___closed__3; extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__1___closed__2; lean_object* l_Lean_Elab_Command_liftEIO___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabEnd___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInCmd___closed__6; -lean_object* l___regBuiltin_Lean_Elab_Command_elabExport___closed__3; lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_instMonadEnvCommandElabM___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); @@ -11390,29 +11373,11 @@ x_3 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_El return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_elabNamespace___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("namespace"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabNamespace___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l_Lean_Elab_Command_elabNamespace___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} lean_object* l_Lean_Elab_Command_elabNamespace(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; -x_5 = l_Lean_Elab_Command_elabNamespace___closed__2; +x_5 = l_Lean_Parser_Command_namespace___elambda__1___closed__2; lean_inc(x_1); x_6 = l_Lean_Syntax_isOfKind(x_1, x_5); if (x_6 == 0) @@ -11469,35 +11434,17 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l_Lean_Elab_Command_elabNamespace___closed__2; +x_3 = l_Lean_Parser_Command_namespace___elambda__1___closed__2; x_4 = l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -static lean_object* _init_l_Lean_Elab_Command_elabSection___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("section"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabSection___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l_Lean_Elab_Command_elabSection___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} lean_object* l_Lean_Elab_Command_elabSection(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; -x_5 = l_Lean_Elab_Command_elabSection___closed__2; +x_5 = l_Lean_Parser_Command_section___elambda__1___closed__2; lean_inc(x_1); x_6 = l_Lean_Syntax_isOfKind(x_1, x_5); if (x_6 == 0) @@ -11644,7 +11591,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l_Lean_Elab_Command_elabSection___closed__2; +x_3 = l_Lean_Parser_Command_section___elambda__1___closed__2; x_4 = l___regBuiltin_Lean_Elab_Command_elabSection___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -12746,24 +12693,6 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEnd___closed__1() _start: { lean_object* x_1; -x_1 = lean_mk_string("end"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l___regBuiltin_Lean_Elab_Command_elabEnd___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEnd___closed__3() { -_start: -{ -lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEnd___boxed), 4, 0); return x_1; } @@ -12773,8 +12702,8 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_elabEnd___closed__3; +x_3 = l_Lean_Parser_Command_end___elambda__1___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_elabEnd___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } @@ -13010,7 +12939,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Elab_Command_modifyScope___closed__1; x_2 = l_Lean_Elab_Command_modifyScope___closed__2; -x_3 = lean_unsigned_to_nat(390u); +x_3 = lean_unsigned_to_nat(391u); x_4 = lean_unsigned_to_nat(16u); x_5 = l_Lean_Syntax_strLitToAtom___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -14053,24 +13982,6 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabUniverse___closed _start: { lean_object* x_1; -x_1 = lean_mk_string("universe"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__3() { -_start: -{ -lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabUniverse___boxed), 4, 0); return x_1; } @@ -14080,8 +13991,8 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__3; +x_3 = l_Lean_Parser_Command_universe___elambda__1___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } @@ -14230,24 +14141,6 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabUniverses___close _start: { lean_object* x_1; -x_1 = lean_mk_string("universes"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__3() { -_start: -{ -lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabUniverses___boxed), 4, 0); return x_1; } @@ -14257,8 +14150,8 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__3; +x_3 = l_Lean_Parser_Command_universes___elambda__1___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } @@ -14475,24 +14368,6 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed _start: { lean_object* x_1; -x_1 = lean_mk_string("init_quot"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__3() { -_start: -{ -lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabInitQuot___boxed), 1, 0); return x_1; } @@ -14502,8 +14377,8 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__3; +x_3 = l_Lean_Parser_Command_init__quot___elambda__1___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } @@ -15100,24 +14975,6 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabExport___closed__ _start: { lean_object* x_1; -x_1 = lean_mk_string("export"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabExport___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l___regBuiltin_Lean_Elab_Command_elabExport___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabExport___closed__3() { -_start: -{ -lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabExport___boxed), 4, 0); return x_1; } @@ -15127,8 +14984,8 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_elabExport___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_elabExport___closed__3; +x_3 = l_Lean_Parser_Command_export___elambda__1___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_elabExport___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } @@ -16485,60 +16342,6 @@ lean_dec(x_1); return x_5; } } -static lean_object* _init_l_Lean_Elab_Command_elabOpen___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("openSimple"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabOpen___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l_Lean_Elab_Command_elabOpen___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabOpen___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("openOnly"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabOpen___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l_Lean_Elab_Command_elabOpen___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabOpen___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("openHiding"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabOpen___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l_Lean_Elab_Command_elabOpen___closed__5; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} lean_object* l_Lean_Elab_Command_elabOpen(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -16548,17 +16351,17 @@ x_6 = l_Lean_Syntax_getArg(x_1, x_5); x_7 = l_Lean_Syntax_asNode(x_6); x_8 = lean_ctor_get(x_7, 0); lean_inc(x_8); -x_9 = l_Lean_Elab_Command_elabOpen___closed__2; +x_9 = l_Lean_Parser_Command_openSimple___elambda__1___closed__2; x_10 = lean_name_eq(x_8, x_9); if (x_10 == 0) { lean_object* x_11; uint8_t x_12; -x_11 = l_Lean_Elab_Command_elabOpen___closed__4; +x_11 = l_Lean_Parser_Command_openOnly___elambda__1___closed__2; x_12 = lean_name_eq(x_8, x_11); if (x_12 == 0) { lean_object* x_13; uint8_t x_14; -x_13 = l_Lean_Elab_Command_elabOpen___closed__6; +x_13 = l_Lean_Parser_Command_openHiding___elambda__1___closed__2; x_14 = lean_name_eq(x_8, x_13); lean_dec(x_8); if (x_14 == 0) @@ -16609,24 +16412,6 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabOpen___closed__1( _start: { lean_object* x_1; -x_1 = lean_mk_string("open"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabOpen___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l___regBuiltin_Lean_Elab_Command_elabOpen___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabOpen___closed__3() { -_start: -{ -lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabOpen___boxed), 4, 0); return x_1; } @@ -16636,8 +16421,8 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_elabOpen___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_elabOpen___closed__3; +x_3 = l_Lean_Parser_Command_open___elambda__1___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_elabOpen___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } @@ -17204,24 +16989,6 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabVariable___closed _start: { lean_object* x_1; -x_1 = lean_mk_string("variable"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabVariable___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l___regBuiltin_Lean_Elab_Command_elabVariable___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabVariable___closed__3() { -_start: -{ -lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabVariable___boxed), 4, 0); return x_1; } @@ -17231,8 +16998,8 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_elabVariable___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_elabVariable___closed__3; +x_3 = l_Lean_Parser_Command_variable___elambda__1___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_elabVariable___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } @@ -17768,24 +17535,6 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabVariables___close _start: { lean_object* x_1; -x_1 = lean_mk_string("variables"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabVariables___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l___regBuiltin_Lean_Elab_Command_elabVariables___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabVariables___closed__3() { -_start: -{ -lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabVariables___boxed), 4, 0); return x_1; } @@ -17795,8 +17544,8 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_elabVariables___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_elabVariables___closed__3; +x_3 = l_Lean_Parser_Command_variables___elambda__1___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_elabVariables___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } @@ -18927,24 +18676,6 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabReduce___closed__ _start: { lean_object* x_1; -x_1 = lean_mk_string("reduce"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabReduce___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l___regBuiltin_Lean_Elab_Command_elabReduce___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabReduce___closed__3() { -_start: -{ -lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabReduce___boxed), 4, 0); return x_1; } @@ -18954,8 +18685,8 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_elabReduce___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_elabReduce___closed__3; +x_3 = l_Lean_Parser_Command_reduce___elambda__1___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_elabReduce___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } @@ -19711,24 +19442,6 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabCheckFailure___cl _start: { lean_object* x_1; -x_1 = lean_mk_string("check_failure"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__3() { -_start: -{ -lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabCheckFailure), 4, 0); return x_1; } @@ -19738,8 +19451,8 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__3; +x_3 = l_Lean_Parser_Command_check__failure___elambda__1___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } @@ -21552,24 +21265,6 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEval___closed__1( _start: { lean_object* x_1; -x_1 = lean_mk_string("eval"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEval___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l___regBuiltin_Lean_Elab_Command_elabEval___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEval___closed__3() { -_start: -{ -lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___boxed), 4, 0); return x_1; } @@ -21579,8 +21274,8 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_elabEval___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_elabEval___closed__3; +x_3 = l_Lean_Parser_Command_eval___elambda__1___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_elabEval___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } @@ -21979,24 +21674,6 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSynth___closed__1 _start: { lean_object* x_1; -x_1 = lean_mk_string("synth"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSynth___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l___regBuiltin_Lean_Elab_Command_elabSynth___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSynth___closed__3() { -_start: -{ -lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSynth___boxed), 4, 0); return x_1; } @@ -22006,8 +21683,8 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_elabSynth___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_elabSynth___closed__3; +x_3 = l_Lean_Parser_Command_synth___elambda__1___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_elabSynth___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } @@ -23235,24 +22912,6 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSetOption___close _start: { lean_object* x_1; -x_1 = lean_mk_string("set_option"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__3() { -_start: -{ -lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSetOption___boxed), 4, 0); return x_1; } @@ -23262,8 +22921,8 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__3; +x_3 = l_Lean_Parser_Command_set__option___elambda__1___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } @@ -23273,7 +22932,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_instInhabitedSourceInfo___closed__1; -x_2 = l_Lean_Elab_Command_elabSection___closed__1; +x_2 = l_Lean_Parser_Command_section___elambda__1___closed__1; x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -23304,7 +22963,7 @@ static lean_object* _init_l_Lean_Elab_Command_expandInCmd___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_elabSection___closed__2; +x_1 = l_Lean_Parser_Command_section___elambda__1___closed__2; x_2 = l_Lean_Elab_Command_expandInCmd___closed__3; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -23327,7 +22986,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_instInhabitedSourceInfo___closed__1; -x_2 = l___regBuiltin_Lean_Elab_Command_elabEnd___closed__1; +x_2 = l_Lean_Parser_Command_end___elambda__1___closed__1; x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -23358,7 +23017,7 @@ static lean_object* _init_l_Lean_Elab_Command_expandInCmd___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2; +x_1 = l_Lean_Parser_Command_end___elambda__1___closed__2; x_2 = l_Lean_Elab_Command_expandInCmd___closed__8; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -23403,24 +23062,6 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandInCmd___closed_ _start: { lean_object* x_1; -x_1 = lean_mk_string("in"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__3() { -_start: -{ -lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_expandInCmd___boxed), 3, 0); return x_1; } @@ -23430,8 +23071,8 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_macroAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__3; +x_3 = l_Lean_Parser_Command_in___elambda__1___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } @@ -24639,6 +24280,7 @@ return x_6; } } lean_object* initialize_Init(lean_object*); +lean_object* initialize_Lean_Parser_Command(lean_object*); lean_object* initialize_Lean_ResolveName(lean_object*); lean_object* initialize_Lean_Meta_Reduce(lean_object*); lean_object* initialize_Lean_Elab_Log(lean_object*); @@ -24654,6 +24296,9 @@ _G_initialized = true; res = initialize_Init(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Parser_Command(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); res = initialize_Lean_ResolveName(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -24866,19 +24511,11 @@ l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes___closed__2 = _init lean_mark_persistent(l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes___closed__2); l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes___closed__3 = _init_l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes___closed__3(); lean_mark_persistent(l___private_Lean_Elab_Command_0__Lean_Elab_Command_addScopes___closed__3); -l_Lean_Elab_Command_elabNamespace___closed__1 = _init_l_Lean_Elab_Command_elabNamespace___closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_elabNamespace___closed__1); -l_Lean_Elab_Command_elabNamespace___closed__2 = _init_l_Lean_Elab_Command_elabNamespace___closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_elabNamespace___closed__2); l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__1); res = l___regBuiltin_Lean_Elab_Command_elabNamespace(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Elab_Command_elabSection___closed__1 = _init_l_Lean_Elab_Command_elabSection___closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_elabSection___closed__1); -l_Lean_Elab_Command_elabSection___closed__2 = _init_l_Lean_Elab_Command_elabSection___closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_elabSection___closed__2); l___regBuiltin_Lean_Elab_Command_elabSection___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabSection___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSection___closed__1); res = l___regBuiltin_Lean_Elab_Command_elabSection(lean_io_mk_world()); @@ -24904,10 +24541,6 @@ l_Lean_Elab_Command_elabEnd___closed__3 = _init_l_Lean_Elab_Command_elabEnd___cl lean_mark_persistent(l_Lean_Elab_Command_elabEnd___closed__3); l___regBuiltin_Lean_Elab_Command_elabEnd___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabEnd___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEnd___closed__1); -l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2); -l___regBuiltin_Lean_Elab_Command_elabEnd___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabEnd___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEnd___closed__3); res = l___regBuiltin_Lean_Elab_Command_elabEnd(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -24924,28 +24557,16 @@ if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__1); -l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__2); -l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__3); res = l___regBuiltin_Lean_Elab_Command_elabUniverse(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__1); -l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__2); -l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__3); res = l___regBuiltin_Lean_Elab_Command_elabUniverses(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__1); -l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__2); -l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__3); res = l___regBuiltin_Lean_Elab_Command_elabInitQuot(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -24959,31 +24580,11 @@ l_Lean_Elab_Command_elabExport___closed__3 = _init_l_Lean_Elab_Command_elabExpor lean_mark_persistent(l_Lean_Elab_Command_elabExport___closed__3); l___regBuiltin_Lean_Elab_Command_elabExport___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabExport___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabExport___closed__1); -l___regBuiltin_Lean_Elab_Command_elabExport___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabExport___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabExport___closed__2); -l___regBuiltin_Lean_Elab_Command_elabExport___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabExport___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabExport___closed__3); res = l___regBuiltin_Lean_Elab_Command_elabExport(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Elab_Command_elabOpen___closed__1 = _init_l_Lean_Elab_Command_elabOpen___closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_elabOpen___closed__1); -l_Lean_Elab_Command_elabOpen___closed__2 = _init_l_Lean_Elab_Command_elabOpen___closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_elabOpen___closed__2); -l_Lean_Elab_Command_elabOpen___closed__3 = _init_l_Lean_Elab_Command_elabOpen___closed__3(); -lean_mark_persistent(l_Lean_Elab_Command_elabOpen___closed__3); -l_Lean_Elab_Command_elabOpen___closed__4 = _init_l_Lean_Elab_Command_elabOpen___closed__4(); -lean_mark_persistent(l_Lean_Elab_Command_elabOpen___closed__4); -l_Lean_Elab_Command_elabOpen___closed__5 = _init_l_Lean_Elab_Command_elabOpen___closed__5(); -lean_mark_persistent(l_Lean_Elab_Command_elabOpen___closed__5); -l_Lean_Elab_Command_elabOpen___closed__6 = _init_l_Lean_Elab_Command_elabOpen___closed__6(); -lean_mark_persistent(l_Lean_Elab_Command_elabOpen___closed__6); l___regBuiltin_Lean_Elab_Command_elabOpen___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabOpen___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabOpen___closed__1); -l___regBuiltin_Lean_Elab_Command_elabOpen___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabOpen___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabOpen___closed__2); -l___regBuiltin_Lean_Elab_Command_elabOpen___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabOpen___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabOpen___closed__3); res = l___regBuiltin_Lean_Elab_Command_elabOpen(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -24991,19 +24592,11 @@ l_Lean_Elab_Command_elabVariable___lambda__2___closed__1 = _init_l_Lean_Elab_Com lean_mark_persistent(l_Lean_Elab_Command_elabVariable___lambda__2___closed__1); l___regBuiltin_Lean_Elab_Command_elabVariable___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabVariable___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabVariable___closed__1); -l___regBuiltin_Lean_Elab_Command_elabVariable___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabVariable___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabVariable___closed__2); -l___regBuiltin_Lean_Elab_Command_elabVariable___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabVariable___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabVariable___closed__3); res = l___regBuiltin_Lean_Elab_Command_elabVariable(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l___regBuiltin_Lean_Elab_Command_elabVariables___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabVariables___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabVariables___closed__1); -l___regBuiltin_Lean_Elab_Command_elabVariables___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabVariables___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabVariables___closed__2); -l___regBuiltin_Lean_Elab_Command_elabVariables___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabVariables___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabVariables___closed__3); res = l___regBuiltin_Lean_Elab_Command_elabVariables(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -25026,10 +24619,6 @@ l_Lean_Elab_Command_elabReduce___lambda__2___closed__1 = _init_l_Lean_Elab_Comma lean_mark_persistent(l_Lean_Elab_Command_elabReduce___lambda__2___closed__1); l___regBuiltin_Lean_Elab_Command_elabReduce___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabReduce___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabReduce___closed__1); -l___regBuiltin_Lean_Elab_Command_elabReduce___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabReduce___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabReduce___closed__2); -l___regBuiltin_Lean_Elab_Command_elabReduce___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabReduce___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabReduce___closed__3); res = l___regBuiltin_Lean_Elab_Command_elabReduce(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -25049,10 +24638,6 @@ l_Lean_Elab_Command_failIfSucceeds___closed__4 = _init_l_Lean_Elab_Command_failI lean_mark_persistent(l_Lean_Elab_Command_failIfSucceeds___closed__4); l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__1); -l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__2); -l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__3); res = l___regBuiltin_Lean_Elab_Command_elabCheckFailure(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -25086,10 +24671,6 @@ l_Lean_Elab_Command_elabEvalUnsafe___closed__5 = _init_l_Lean_Elab_Command_elabE lean_mark_persistent(l_Lean_Elab_Command_elabEvalUnsafe___closed__5); l___regBuiltin_Lean_Elab_Command_elabEval___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabEval___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEval___closed__1); -l___regBuiltin_Lean_Elab_Command_elabEval___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabEval___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEval___closed__2); -l___regBuiltin_Lean_Elab_Command_elabEval___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabEval___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEval___closed__3); res = l___regBuiltin_Lean_Elab_Command_elabEval(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -25103,10 +24684,6 @@ l_Lean_Elab_Command_elabSynth___closed__3 = _init_l_Lean_Elab_Command_elabSynth_ lean_mark_persistent(l_Lean_Elab_Command_elabSynth___closed__3); l___regBuiltin_Lean_Elab_Command_elabSynth___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabSynth___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSynth___closed__1); -l___regBuiltin_Lean_Elab_Command_elabSynth___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabSynth___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSynth___closed__2); -l___regBuiltin_Lean_Elab_Command_elabSynth___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabSynth___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSynth___closed__3); res = l___regBuiltin_Lean_Elab_Command_elabSynth(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -25122,10 +24699,6 @@ l_Lean_Elab_Command_elabSetOption___closed__2 = _init_l_Lean_Elab_Command_elabSe lean_mark_persistent(l_Lean_Elab_Command_elabSetOption___closed__2); l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__1); -l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__2); -l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__3); res = l___regBuiltin_Lean_Elab_Command_elabSetOption(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -25149,10 +24722,6 @@ l_Lean_Elab_Command_expandInCmd___closed__9 = _init_l_Lean_Elab_Command_expandIn lean_mark_persistent(l_Lean_Elab_Command_expandInCmd___closed__9); l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__1); -l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__2); -l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__3); res = l___regBuiltin_Lean_Elab_Command_expandInCmd(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); diff --git a/stage0/stdlib/Lean/Elab/Declaration.c b/stage0/stdlib/Lean/Elab/Declaration.c index 3b327bb1cb..78f2d8566d 100644 --- a/stage0/stdlib/Lean/Elab/Declaration.c +++ b/stage0/stdlib/Lean/Elab/Declaration.c @@ -18,16 +18,14 @@ lean_object* l_Lean_Elab_Command_expandInitialize(lean_object*, lean_object*, le lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualElement_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabAttr___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_expandInitCmd___closed__20; extern lean_object* l_Lean_Name_toString___closed__1; lean_object* l_Lean_extractMacroScopes(lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__21; size_t l_USize_add(size_t, size_t); lean_object* l_Lean_Elab_expandOptDeclSig(lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_expandInitialize___closed__3; +extern lean_object* l_Lean_Parser_Command_abbrev___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_expandMutualElement_match__2(lean_object*); -lean_object* l_Lean_Elab_Command_expandInitCmd___closed__24; extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__3___closed__2; lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualPreamble___closed__1; lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__4(lean_object*); @@ -45,7 +43,6 @@ lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__1(lean_object*); uint8_t l_USize_decEq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); -extern lean_object* l_Lean_Elab_Command_elabSection___closed__2; lean_object* l_Array_append___rarg(lean_object*, lean_object*); uint8_t l_Lean_Elab_Modifiers_isProtected(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_expandInitialize___closed__1; @@ -57,7 +54,6 @@ extern lean_object* l_Lean_Elab_Command_commandElabAttribute; lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_expandInitialize___closed__2; lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f_match__2(lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView_match__1___rarg(lean_object*, lean_object*); @@ -69,6 +65,7 @@ lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyn lean_object* l_Lean_Elab_Command_elabAxiom_match__3(lean_object*); lean_object* l_Lean_Elab_Command_elabDeclaration_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Command_section___elambda__1___closed__2; lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -86,6 +83,7 @@ lean_object* l_Lean_Elab_Command_expandInitCmd___closed__14; lean_object* l_Lean_Elab_Command_expandMutualPreamble_match__1(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_expandInitialize(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabDeclaration(lean_object*); +extern lean_object* l_Lean_Parser_Command_mutual___elambda__1___closed__2; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabAttr___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabAxiom_match__5___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__3; @@ -95,12 +93,10 @@ lean_object* lean_array_get_size(lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_elabMutualInductive___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__3(lean_object*); -lean_object* l_Lean_Elab_Command_expandInitCmd___closed__22; lean_object* l_Lean_Elab_Term_applyAttributesAt(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualElement_match__1(lean_object*); lean_object* l_Lean_Elab_Command_getLevelNames___rarg(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabMutual(lean_object*); -extern lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_4____closed__1; lean_object* lean_string_utf8_byte_size(lean_object*); lean_object* l_Lean_Elab_Command_expandMutualElement_match__3___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withLevelNames___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -121,12 +117,13 @@ lean_object* l_Lean_Elab_Command_elabAxiom_match__4___rarg(lean_object*, lean_ob lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_getVarDecls(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualNamespace(lean_object*); lean_object* l_Lean_Name_toStringWithSep(lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Command_check___elambda__1___closed__2; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_classInductiveSyntaxToView(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_setEnv___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Command_classInductive___elambda__1___closed__2; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabAttr___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___closed__2; -extern lean_object* l_Lean_Elab_Command_isDefLike___closed__4; lean_object* l_Lean_Elab_Command_expandDeclIdNamespace_x3f_match__1(lean_object*); lean_object* l_Lean_Elab_Command_expandInitCmd___closed__19; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -141,9 +138,10 @@ lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyn lean_object* l_Lean_Elab_Term_levelMVarToParam(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Command_initialize___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_elabAxiom___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabAxiom(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_Command_isDefLike___closed__2; +extern lean_object* l_Lean_Parser_Command_set__option___elambda__1___closed__2; extern lean_object* l_myMacro____x40_Init_System_IO___hyg_2501____closed__16; lean_object* l_Lean_Elab_Command_expandMutualNamespace___closed__1; lean_object* l_Lean_Elab_Command_expandDeclId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -154,18 +152,15 @@ extern lean_object* l_Lean_Elab_Command_checkValidCtorModifier___rarg___lambda__ lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabInductiveViews(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabAttr___closed__3; lean_object* l_Lean_Elab_Command_elabAxiom_match__3___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__10; -lean_object* l___regBuiltin_Lean_Elab_Command_expandBuiltinInitialize___closed__2; lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkForallUsedOnly(lean_object*, lean_object*, lean_object*, 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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualPreamble___closed__4; +extern lean_object* l_Lean_Parser_Command_namespace___elambda__1___closed__2; lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualPreamble(lean_object*); -extern lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen___closed__2; lean_object* l_Lean_Elab_Command_expandInitCmd___closed__10; -extern lean_object* l___regBuiltin_Lean_Elab_Command_elabVariables___closed__2; extern lean_object* l_Lean_instInhabitedSourceInfo___closed__1; lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f_match__1(lean_object*); extern lean_object* l_Lean_Elab_Command_checkValidCtorModifier___rarg___lambda__1___closed__3; @@ -173,6 +168,7 @@ lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyn lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* l_Lean_Elab_Command_elabClassInductive(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Command_namespace___elambda__1___closed__1; lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_initFn____x40_Lean_Compiler_InitAttr___hyg_519____closed__2; lean_object* l_Lean_Elab_Command_expandInitialize___boxed(lean_object*, lean_object*, lean_object*); @@ -180,38 +176,31 @@ lean_object* l_Lean_Macro_throwErrorAt___rarg(lean_object*, lean_object*, lean_o uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); extern lean_object* l_Lean_protectedExt; lean_object* l_Lean_CollectLevelParams_main(lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__3; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__3; lean_object* l_Lean_Elab_Command_expandInitCmd___closed__2; -lean_object* l_Lean_Elab_Command_expandInitCmd___closed__21; lean_object* l_Lean_Elab_Command_expandMutualElement___closed__1; lean_object* l_Lean_Elab_Command_expandMutualPreamble___closed__1; lean_object* l_Lean_Elab_Command_expandMutualPreamble___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabMutual___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabAttr___closed__1; -extern lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2; uint8_t l_Lean_Elab_Command_isDefLike(lean_object*); lean_object* l_Lean_Elab_Command_expandDeclIdNamespace_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualPreamble___closed__3; lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f(lean_object*); +extern lean_object* l_Lean_Parser_Command_open___elambda__1___closed__2; extern lean_object* l_myMacro____x40_Init_Notation___hyg_12176____closed__22; -extern lean_object* l_myMacro____x40_Init_Notation___hyg_1625____closed__2; lean_object* l_Lean_Elab_Command_elabCommand(lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_Command_elabStructure___closed__3; lean_object* l_Lean_Elab_sortDeclLevelParams(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualInductive___boxed(lean_object*); lean_object* l_Lean_Elab_Command_elabMutual___closed__2; lean_object* l_Lean_Elab_Command_elabAxiom_match__2___rarg(lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__2; lean_object* l_Lean_setEnv___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_KernelException_toMessageData___closed__3; size_t lean_usize_of_nat(lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabAttr___closed__2; lean_object* l_Lean_Elab_Command_elabAxiom___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabAxiom_match__2(lean_object*); lean_object* l_Lean_Elab_expandDeclIdCore(lean_object*); -lean_object* l_Lean_Elab_Command_expandInitCmd___closed__23; lean_object* l_Lean_Elab_Command_elabAttr___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualDef(lean_object*); lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__4___rarg(lean_object*, lean_object*); @@ -226,30 +215,30 @@ lean_object* l_Lean_Elab_Term_elabBinders___rarg___boxed(lean_object*, lean_obje extern lean_object* l_Lean_nullKind___closed__2; extern lean_object* l_Lean_initFn____x40_Lean_Compiler_InitAttr___hyg_535____closed__2; lean_object* l_Lean_Elab_Command_expandMutualElement(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Command_instance___elambda__1___closed__2; extern lean_object* l_myMacro____x40_Init_Data_Array_Basic___hyg_3404____closed__10; lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualElement(lean_object*); extern lean_object* l_myMacro____x40_Init_System_IO___hyg_2501____closed__19; extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__8; +extern lean_object* l_Lean_Parser_Command_universe___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_resetMessageLog(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualPreamble___closed__2; extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__46; lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitCmd(uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___lambda__2___closed__2; -extern lean_object* l___regBuiltin_Lean_Elab_Command_elabCheck___closed__1; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__1; -lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__1; +extern lean_object* l_Lean_Parser_Command_end___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_expandInitCmd___closed__4; lean_object* l_Lean_Elab_Command_expandInitCmd___closed__11; extern lean_object* l_Lean_CollectLevelParams_instInhabitedState___closed__1; extern lean_object* l_Lean_Elab_macroAttribute; -lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__2; -lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__2; lean_object* l_Lean_Syntax_setArg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabMutual(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_elabMutualInductive(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Term_elabDoubleQuotedName___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualElement_match__3(lean_object*); +extern lean_object* l_Lean_Parser_Command_axiom___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_expandInitCmd___closed__17; uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getCurrMacroScope(lean_object*, lean_object*, lean_object*); @@ -257,17 +246,17 @@ lean_object* l_Lean_mkPrivateName(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView_match__3(lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Command_declSig___elambda__1___closed__2; lean_object* l_Lean_Syntax_getKind(lean_object*); lean_object* l_Lean_MacroScopesView_review(lean_object*); lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_applyAttributes(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__4; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_Command_elabStructure___closed__1; lean_object* l_Lean_Elab_Command_expandMutualPreamble___closed__5; lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__2(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualElement___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_Command_isDefLike___closed__6; lean_object* l_Lean_Elab_Command_getMainModule___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabStructure(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView_match__1(lean_object*); @@ -281,16 +270,20 @@ lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__1___rarg(lean_obje lean_object* l_Lean_Elab_Command_expandInitCmd___closed__3; extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__5; lean_object* l_Lean_Elab_Command_getRef(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_277____closed__2; lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_splitMutualPreamble_loop(lean_object*, lean_object*); lean_object* l_Lean_Elab_expandDeclSig(lean_object*); lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_Command_elabNamespace___closed__2; +extern lean_object* l_Lean_Parser_Command_structure___elambda__1___closed__2; lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualDef___boxed(lean_object*); +extern lean_object* l_Lean_Parser_Command_attribute___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_expandInitCmd___closed__15; +extern lean_object* l_Lean_Parser_Command_inductive___elambda__1___closed__2; uint8_t l_Lean_Syntax_isNone(lean_object*); lean_object* l_Lean_Elab_Command_expandInitCmd___closed__18; extern lean_object* l_myMacro____x40_Init_System_IO___hyg_2501____closed__11; +extern lean_object* l_Lean_Parser_Command_universes___elambda__1___closed__2; lean_object* l_Lean_Elab_Modifiers_addAttribute(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -299,7 +292,6 @@ extern lean_object* l_Lean_Elab_Term_expandFunBinders_loop___closed__5; lean_object* l_Lean_Elab_Command_expandInitCmd___closed__6; lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualNamespace(lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__1; extern lean_object* l_myMacro____x40_Init_Notation___hyg_521____closed__23; lean_object* l_Lean_Elab_Command_elabAxiom_match__4(lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); @@ -309,8 +301,7 @@ lean_object* l_Lean_Elab_Command_expandMutualPreamble___closed__6; lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_elabMutualInductive___boxed__const__1; lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__1; lean_object* l_Lean_Elab_Command_elabAxiom_match__5(lean_object*); -extern lean_object* l_Lean_Elab_Command_isDefLike___closed__5; -lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__3; +extern lean_object* l_Lean_Parser_Command_variables___elambda__1___closed__2; lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; uint8_t l_Lean_Elab_Modifiers_isPrivate(lean_object*); @@ -325,16 +316,14 @@ lean_object* l_Lean_Elab_Command_expandInitCmd___closed__8; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabDeclaration___closed__2; extern lean_object* l_Lean_mkOptionalNode___closed__2; -lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__5; -lean_object* l___regBuiltin_Lean_Elab_Command_expandBuiltinInitialize___closed__3; lean_object* l_Lean_Elab_Command_elabAxiom___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_expandInitCmd___closed__25; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabDeclaration___closed__5; lean_object* l_Lean_Elab_Command_elabInductive(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_277____closed__4; extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__27; -extern lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__2; +extern lean_object* l_Lean_Parser_Command_builtin__initialize___elambda__1___closed__2; uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualDef___spec__1(lean_object*, size_t, size_t); lean_object* l_Lean_Elab_Command_elabAttr(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabDeclaration___closed__1; @@ -348,17 +337,17 @@ uint8_t l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualInductive lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__3___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_expandInCmd___closed__2; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabAttr___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_Command_isDefLike___closed__7; -extern lean_object* l_Lean_Elab_Command_elabNamespace___closed__1; extern lean_object* l_Lean_Elab_Command_checkValidCtorModifier___rarg___lambda__2___closed__3; lean_object* l___regBuiltin_Lean_Elab_Command_elabMutual___closed__1; extern lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_15583____closed__5; lean_object* l_Lean_Elab_Command_elabAxiom_match__1(lean_object*); lean_object* l_Lean_Elab_Command_expandInitCmd___closed__1; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___closed__3; +extern lean_object* l_Lean_Parser_Command_constant___elambda__1___closed__2; extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__2___closed__2; lean_object* l_Lean_Elab_Command_expandInitCmd___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__2; +extern lean_object* l_Lean_Parser_Command_theorem___elambda__1___closed__2; +extern lean_object* l_Lean_Parser_Command_constant___elambda__1___closed__1; lean_object* l_Lean_Elab_Term_withAutoBoundImplicitLocal___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitCmd___closed__5; extern lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process___lambda__1___closed__2; @@ -366,7 +355,6 @@ extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__1___clo lean_object* l_Lean_Elab_Command_expandBuiltinInitialize(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabEnd___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_System_IO___hyg_2501____closed__17; -lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__6; lean_object* l_Lean_Elab_Command_elabAxiom___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__2___rarg(lean_object*, lean_object*); @@ -746,62 +734,6 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_expandDeclNamespace_x3f_mat return x_2; } } -static lean_object* _init_l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("axiom"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_4____closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("classInductive"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__4; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f(lean_object* x_1) { _start: { @@ -823,7 +755,7 @@ x_5 = lean_unsigned_to_nat(1u); x_6 = l_Lean_Syntax_getArg(x_1, x_5); lean_inc(x_6); x_7 = l_Lean_Syntax_getKind(x_6); -x_8 = l_Lean_Elab_Command_isDefLike___closed__2; +x_8 = l_Lean_Parser_Command_abbrev___elambda__1___closed__2; x_9 = lean_name_eq(x_7, x_8); if (x_9 == 0) { @@ -833,37 +765,37 @@ x_11 = lean_name_eq(x_7, x_10); if (x_11 == 0) { lean_object* x_12; uint8_t x_13; -x_12 = l_Lean_Elab_Command_isDefLike___closed__4; +x_12 = l_Lean_Parser_Command_theorem___elambda__1___closed__2; x_13 = lean_name_eq(x_7, x_12); if (x_13 == 0) { lean_object* x_14; uint8_t x_15; -x_14 = l_Lean_Elab_Command_isDefLike___closed__6; +x_14 = l_Lean_Parser_Command_constant___elambda__1___closed__2; x_15 = lean_name_eq(x_7, x_14); if (x_15 == 0) { lean_object* x_16; uint8_t x_17; -x_16 = l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__2; +x_16 = l_Lean_Parser_Command_axiom___elambda__1___closed__2; x_17 = lean_name_eq(x_7, x_16); if (x_17 == 0) { lean_object* x_18; uint8_t x_19; -x_18 = l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__3; +x_18 = l_Lean_Parser_Command_inductive___elambda__1___closed__2; x_19 = lean_name_eq(x_7, x_18); if (x_19 == 0) { lean_object* x_20; uint8_t x_21; -x_20 = l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__5; +x_20 = l_Lean_Parser_Command_classInductive___elambda__1___closed__2; x_21 = lean_name_eq(x_7, x_20); if (x_21 == 0) { lean_object* x_22; uint8_t x_23; -x_22 = l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__6; +x_22 = l_Lean_Parser_Command_structure___elambda__1___closed__2; x_23 = lean_name_eq(x_7, x_22); if (x_23 == 0) { lean_object* x_24; uint8_t x_25; -x_24 = l_Lean_Elab_Command_isDefLike___closed__7; +x_24 = l_Lean_Parser_Command_instance___elambda__1___closed__2; x_25 = lean_name_eq(x_7, x_24); lean_dec(x_7); if (x_25 == 0) @@ -4213,7 +4145,7 @@ lean_object* l_Lean_Elab_Command_elabClassInductive(lean_object* x_1, lean_objec _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = l_Lean_Elab_Command_elabStructure___closed__3; +x_6 = l_Lean_Elab_Command_elabStructure___closed__1; x_7 = l_Lean_Elab_Modifiers_addAttribute(x_1, x_6); lean_inc(x_4); lean_inc(x_3); @@ -4327,7 +4259,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_instInhabitedSourceInfo___closed__1; -x_2 = l_Lean_Elab_Command_elabNamespace___closed__1; +x_2 = l_Lean_Parser_Command_namespace___elambda__1___closed__1; x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -4371,22 +4303,22 @@ x_11 = lean_unsigned_to_nat(1u); x_12 = l_Lean_Syntax_getArg(x_1, x_11); lean_inc(x_12); x_13 = l_Lean_Syntax_getKind(x_12); -x_14 = l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__2; +x_14 = l_Lean_Parser_Command_axiom___elambda__1___closed__2; x_15 = lean_name_eq(x_13, x_14); if (x_15 == 0) { lean_object* x_16; uint8_t x_17; -x_16 = l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__3; +x_16 = l_Lean_Parser_Command_inductive___elambda__1___closed__2; x_17 = lean_name_eq(x_13, x_16); if (x_17 == 0) { lean_object* x_18; uint8_t x_19; -x_18 = l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__5; +x_18 = l_Lean_Parser_Command_classInductive___elambda__1___closed__2; x_19 = lean_name_eq(x_13, x_18); if (x_19 == 0) { lean_object* x_20; uint8_t x_21; -x_20 = l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__6; +x_20 = l_Lean_Parser_Command_structure___elambda__1___closed__2; x_21 = lean_name_eq(x_13, x_20); lean_dec(x_13); if (x_21 == 0) @@ -4498,7 +4430,7 @@ lean_dec(x_42); x_44 = l_Lean_Elab_Command_elabDeclaration___closed__5; lean_inc(x_39); x_45 = lean_array_push(x_44, x_39); -x_46 = l_Lean_Elab_Command_elabNamespace___closed__2; +x_46 = l_Lean_Parser_Command_namespace___elambda__1___closed__2; x_47 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_47, 0, x_46); lean_ctor_set(x_47, 1, x_45); @@ -4512,7 +4444,7 @@ lean_ctor_set(x_53, 0, x_52); lean_ctor_set(x_53, 1, x_51); x_54 = l_Lean_Elab_Command_expandInCmd___closed__7; x_55 = lean_array_push(x_54, x_53); -x_56 = l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2; +x_56 = l_Lean_Parser_Command_end___elambda__1___closed__2; x_57 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_57, 0, x_56); lean_ctor_set(x_57, 1, x_55); @@ -4609,7 +4541,7 @@ x_6 = lean_unsigned_to_nat(1u); x_7 = l_Lean_Syntax_getArg(x_5, x_6); lean_dec(x_5); x_8 = l_Lean_Syntax_getKind(x_7); -x_9 = l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__3; +x_9 = l_Lean_Parser_Command_inductive___elambda__1___closed__2; x_10 = lean_name_eq(x_8, x_9); lean_dec(x_8); if (x_10 == 0) @@ -5040,32 +4972,32 @@ x_4 = lean_name_eq(x_2, x_3); if (x_4 == 0) { lean_object* x_5; uint8_t x_6; -x_5 = l___regBuiltin_Lean_Elab_Command_elabVariables___closed__2; +x_5 = l_Lean_Parser_Command_variables___elambda__1___closed__2; x_6 = lean_name_eq(x_2, x_5); if (x_6 == 0) { lean_object* x_7; uint8_t x_8; -x_7 = l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__2; +x_7 = l_Lean_Parser_Command_universe___elambda__1___closed__2; x_8 = lean_name_eq(x_2, x_7); if (x_8 == 0) { lean_object* x_9; uint8_t x_10; -x_9 = l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__2; +x_9 = l_Lean_Parser_Command_universes___elambda__1___closed__2; x_10 = lean_name_eq(x_2, x_9); if (x_10 == 0) { lean_object* x_11; uint8_t x_12; -x_11 = l___regBuiltin_Lean_Elab_Command_elabCheck___closed__1; +x_11 = l_Lean_Parser_Command_check___elambda__1___closed__2; x_12 = lean_name_eq(x_2, x_11); if (x_12 == 0) { lean_object* x_13; uint8_t x_14; -x_13 = l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__2; +x_13 = l_Lean_Parser_Command_set__option___elambda__1___closed__2; x_14 = lean_name_eq(x_2, x_13); if (x_14 == 0) { lean_object* x_15; uint8_t x_16; -x_15 = l___regBuiltin_Lean_Elab_Command_elabOpen___closed__2; +x_15 = l_Lean_Parser_Command_open___elambda__1___closed__2; x_16 = lean_name_eq(x_2, x_15); lean_dec(x_2); return x_16; @@ -5789,7 +5721,7 @@ x_27 = l_Lean_Syntax_setArg(x_1, x_4, x_26); x_28 = l_Lean_Elab_Command_elabDeclaration___closed__5; lean_inc(x_24); x_29 = lean_array_push(x_28, x_24); -x_30 = l_Lean_Elab_Command_elabNamespace___closed__2; +x_30 = l_Lean_Parser_Command_namespace___elambda__1___closed__2; x_31 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_31, 0, x_30); lean_ctor_set(x_31, 1, x_29); @@ -5803,7 +5735,7 @@ lean_ctor_set(x_37, 0, x_36); lean_ctor_set(x_37, 1, x_35); x_38 = l_Lean_Elab_Command_expandInCmd___closed__7; x_39 = lean_array_push(x_38, x_37); -x_40 = l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2; +x_40 = l_Lean_Parser_Command_end___elambda__1___closed__2; x_41 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_41, 0, x_40); lean_ctor_set(x_41, 1, x_39); @@ -5835,7 +5767,7 @@ x_50 = l_Lean_Syntax_setArg(x_1, x_4, x_49); x_51 = l_Lean_Elab_Command_elabDeclaration___closed__5; lean_inc(x_47); x_52 = lean_array_push(x_51, x_47); -x_53 = l_Lean_Elab_Command_elabNamespace___closed__2; +x_53 = l_Lean_Parser_Command_namespace___elambda__1___closed__2; x_54 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_54, 0, x_53); lean_ctor_set(x_54, 1, x_52); @@ -5849,7 +5781,7 @@ lean_ctor_set(x_60, 0, x_59); lean_ctor_set(x_60, 1, x_58); x_61 = l_Lean_Elab_Command_expandInCmd___closed__7; x_62 = lean_array_push(x_61, x_60); -x_63 = l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2; +x_63 = l_Lean_Parser_Command_end___elambda__1___closed__2; x_64 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_64, 0, x_63); lean_ctor_set(x_64, 1, x_62); @@ -5906,24 +5838,6 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandMutualNamespace _start: { lean_object* x_1; -x_1 = lean_mk_string("mutual"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__3() { -_start: -{ -lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_expandMutualNamespace), 3, 0); return x_1; } @@ -5933,8 +5847,8 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_macroAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__3; +x_3 = l_Lean_Parser_Command_mutual___elambda__1___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } @@ -6357,7 +6271,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_macroAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__2; +x_3 = l_Lean_Parser_Command_mutual___elambda__1___closed__2; x_4 = l___regBuiltin_Lean_Elab_Command_expandMutualElement___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -6413,7 +6327,7 @@ static lean_object* _init_l_Lean_Elab_Command_expandMutualPreamble___closed__2() _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_elabSection___closed__2; +x_1 = l_Lean_Parser_Command_section___elambda__1___closed__2; x_2 = l_Lean_Elab_Command_expandMutualPreamble___closed__1; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -6435,7 +6349,7 @@ static lean_object* _init_l_Lean_Elab_Command_expandMutualPreamble___closed__4() _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2; +x_1 = l_Lean_Parser_Command_end___elambda__1___closed__2; x_2 = l_Lean_Elab_Command_expandMutualPreamble___closed__3; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -6540,7 +6454,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_macroAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__2; +x_3 = l_Lean_Parser_Command_mutual___elambda__1___closed__2; x_4 = l___regBuiltin_Lean_Elab_Command_expandMutualPreamble___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -6636,7 +6550,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__2; +x_3 = l_Lean_Parser_Command_mutual___elambda__1___closed__2; x_4 = l___regBuiltin_Lean_Elab_Command_elabMutual___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -6891,24 +6805,6 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabAttr___closed__1( _start: { lean_object* x_1; -x_1 = lean_mk_string("attribute"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabAttr___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l___regBuiltin_Lean_Elab_Command_elabAttr___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabAttr___closed__3() { -_start: -{ -lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabAttr___boxed), 4, 0); return x_1; } @@ -6918,8 +6814,8 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_elabAttr___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_elabAttr___closed__3; +x_3 = l_Lean_Parser_Command_attribute___elambda__1___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_elabAttr___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } @@ -7064,18 +6960,22 @@ return x_3; static lean_object* _init_l_Lean_Elab_Command_expandInitCmd___closed__14() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("do"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__1; +x_2 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__8; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Elab_Command_expandInitCmd___closed__15() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_myMacro____x40_Init_Notation___hyg_1625____closed__2; +x_1 = l_Array_empty___closed__1; x_2 = l_Lean_Elab_Command_expandInitCmd___closed__14; -x_3 = lean_name_mk_string(x_1, x_2); +x_3 = lean_array_push(x_1, x_2); return x_3; } } @@ -7084,7 +6984,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_instInhabitedSourceInfo___closed__1; -x_2 = l_Lean_Elab_Command_expandInitCmd___closed__14; +x_2 = l_Lean_Parser_Command_constant___elambda__1___closed__1; x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -7106,7 +7006,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__1; -x_2 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__8; +x_2 = l_Lean_Elab_Term_expandFunBinders_loop___closed__5; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -7123,68 +7023,6 @@ x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_expandInitCmd___closed__20() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_instInhabitedSourceInfo___closed__1; -x_2 = l_Lean_Elab_Command_isDefLike___closed__5; -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; -} -} -static lean_object* _init_l_Lean_Elab_Command_expandInitCmd___closed__21() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_empty___closed__1; -x_2 = l_Lean_Elab_Command_expandInitCmd___closed__20; -x_3 = lean_array_push(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Command_expandInitCmd___closed__22() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("declSig"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_expandInitCmd___closed__23() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l_Lean_Elab_Command_expandInitCmd___closed__22; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Command_expandInitCmd___closed__24() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__1; -x_2 = l_Lean_Elab_Term_expandFunBinders_loop___closed__5; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Command_expandInitCmd___closed__25() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_empty___closed__1; -x_2 = l_Lean_Elab_Command_expandInitCmd___closed__24; -x_3 = lean_array_push(x_1, x_2); -return x_3; -} -} lean_object* l_Lean_Elab_Command_expandInitCmd(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -7287,9 +7125,9 @@ x_53 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_53, 0, x_52); lean_ctor_set(x_53, 1, x_51); x_54 = lean_array_push(x_31, x_53); -x_55 = l_Lean_Elab_Command_expandInitCmd___closed__17; +x_55 = l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_277____closed__4; x_56 = lean_array_push(x_55, x_8); -x_57 = l_Lean_Elab_Command_expandInitCmd___closed__15; +x_57 = l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_277____closed__2; x_58 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_58, 0, x_57); lean_ctor_set(x_58, 1, x_56); @@ -7312,7 +7150,7 @@ x_70 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_70, 0, x_69); lean_ctor_set(x_70, 1, x_68); x_71 = lean_array_push(x_24, x_70); -x_72 = l_Lean_Elab_Command_expandInitCmd___closed__19; +x_72 = l_Lean_Elab_Command_expandInitCmd___closed__15; x_73 = lean_array_push(x_72, x_11); x_74 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_74, 0, x_39); @@ -7348,20 +7186,20 @@ x_94 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_94, 0, x_93); lean_ctor_set(x_94, 1, x_92); x_95 = lean_array_push(x_24, x_94); -x_96 = l_Lean_Elab_Command_expandInitCmd___closed__21; +x_96 = l_Lean_Elab_Command_expandInitCmd___closed__17; x_97 = lean_array_push(x_96, x_13); x_98 = lean_array_push(x_44, x_15); x_99 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_99, 0, x_46); lean_ctor_set(x_99, 1, x_98); x_100 = lean_array_push(x_50, x_99); -x_101 = l_Lean_Elab_Command_expandInitCmd___closed__23; +x_101 = l_Lean_Parser_Command_declSig___elambda__1___closed__2; x_102 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_102, 0, x_101); lean_ctor_set(x_102, 1, x_100); x_103 = lean_array_push(x_97, x_102); x_104 = lean_array_push(x_103, x_26); -x_105 = l_Lean_Elab_Command_isDefLike___closed__6; +x_105 = l_Lean_Parser_Command_constant___elambda__1___closed__2; x_106 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_106, 0, x_105); lean_ctor_set(x_106, 1, x_104); @@ -7387,7 +7225,7 @@ lean_inc(x_112); x_113 = lean_ctor_get(x_3, 1); lean_inc(x_113); lean_dec(x_3); -x_114 = l_Lean_Elab_Command_expandInitCmd___closed__25; +x_114 = l_Lean_Elab_Command_expandInitCmd___closed__19; x_115 = lean_array_push(x_114, x_11); x_116 = l_myMacro____x40_Init_Notation___hyg_521____closed__23; x_117 = lean_array_push(x_115, x_116); @@ -7490,9 +7328,9 @@ x_177 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_177, 0, x_176); lean_ctor_set(x_177, 1, x_175); x_178 = lean_array_push(x_152, x_177); -x_179 = l_Lean_Elab_Command_expandInitCmd___closed__17; +x_179 = l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_277____closed__4; x_180 = lean_array_push(x_179, x_8); -x_181 = l_Lean_Elab_Command_expandInitCmd___closed__15; +x_181 = l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_277____closed__2; x_182 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_182, 0, x_181); lean_ctor_set(x_182, 1, x_180); @@ -7554,24 +7392,6 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandInitialize___cl _start: { lean_object* x_1; -x_1 = lean_mk_string("initialize"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandInitialize___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l___regBuiltin_Lean_Elab_Command_expandInitialize___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandInitialize___closed__3() { -_start: -{ -lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_expandInitialize___boxed), 3, 0); return x_1; } @@ -7581,8 +7401,8 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_macroAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_expandInitialize___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_expandInitialize___closed__3; +x_3 = l_Lean_Parser_Command_initialize___elambda__1___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_expandInitialize___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } @@ -7609,24 +7429,6 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandBuiltinInitiali _start: { lean_object* x_1; -x_1 = lean_mk_string("builtin_initialize"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandBuiltinInitialize___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l___regBuiltin_Lean_Elab_Command_expandBuiltinInitialize___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandBuiltinInitialize___closed__3() { -_start: -{ -lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_expandBuiltinInitialize___boxed), 3, 0); return x_1; } @@ -7636,8 +7438,8 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_macroAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_expandBuiltinInitialize___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_expandBuiltinInitialize___closed__3; +x_3 = l_Lean_Parser_Command_builtin__initialize___elambda__1___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_expandBuiltinInitialize___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } @@ -7675,18 +7477,6 @@ lean_dec_ref(res); res = initialize_Lean_Elab_MutualDef(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__1 = _init_l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__1); -l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__2 = _init_l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__2); -l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__3 = _init_l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__3(); -lean_mark_persistent(l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__3); -l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__4 = _init_l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__4(); -lean_mark_persistent(l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__4); -l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__5 = _init_l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__5(); -lean_mark_persistent(l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__5); -l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__6 = _init_l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__6(); -lean_mark_persistent(l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__6); l_Array_mapMUnsafe_map___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___lambda__2___closed__1 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___lambda__2___closed__1(); lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___lambda__2___closed__1); l_Array_mapMUnsafe_map___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___lambda__2___closed__2 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___lambda__2___closed__2(); @@ -7730,10 +7520,6 @@ l_Lean_Elab_Command_expandMutualNamespace___closed__1 = _init_l_Lean_Elab_Comman lean_mark_persistent(l_Lean_Elab_Command_expandMutualNamespace___closed__1); l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__1); -l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__2); -l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__3); res = l___regBuiltin_Lean_Elab_Command_expandMutualNamespace(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -7774,10 +7560,6 @@ if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l___regBuiltin_Lean_Elab_Command_elabAttr___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabAttr___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabAttr___closed__1); -l___regBuiltin_Lean_Elab_Command_elabAttr___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabAttr___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabAttr___closed__2); -l___regBuiltin_Lean_Elab_Command_elabAttr___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabAttr___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabAttr___closed__3); res = l___regBuiltin_Lean_Elab_Command_elabAttr(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -7819,33 +7601,13 @@ l_Lean_Elab_Command_expandInitCmd___closed__18 = _init_l_Lean_Elab_Command_expan lean_mark_persistent(l_Lean_Elab_Command_expandInitCmd___closed__18); l_Lean_Elab_Command_expandInitCmd___closed__19 = _init_l_Lean_Elab_Command_expandInitCmd___closed__19(); lean_mark_persistent(l_Lean_Elab_Command_expandInitCmd___closed__19); -l_Lean_Elab_Command_expandInitCmd___closed__20 = _init_l_Lean_Elab_Command_expandInitCmd___closed__20(); -lean_mark_persistent(l_Lean_Elab_Command_expandInitCmd___closed__20); -l_Lean_Elab_Command_expandInitCmd___closed__21 = _init_l_Lean_Elab_Command_expandInitCmd___closed__21(); -lean_mark_persistent(l_Lean_Elab_Command_expandInitCmd___closed__21); -l_Lean_Elab_Command_expandInitCmd___closed__22 = _init_l_Lean_Elab_Command_expandInitCmd___closed__22(); -lean_mark_persistent(l_Lean_Elab_Command_expandInitCmd___closed__22); -l_Lean_Elab_Command_expandInitCmd___closed__23 = _init_l_Lean_Elab_Command_expandInitCmd___closed__23(); -lean_mark_persistent(l_Lean_Elab_Command_expandInitCmd___closed__23); -l_Lean_Elab_Command_expandInitCmd___closed__24 = _init_l_Lean_Elab_Command_expandInitCmd___closed__24(); -lean_mark_persistent(l_Lean_Elab_Command_expandInitCmd___closed__24); -l_Lean_Elab_Command_expandInitCmd___closed__25 = _init_l_Lean_Elab_Command_expandInitCmd___closed__25(); -lean_mark_persistent(l_Lean_Elab_Command_expandInitCmd___closed__25); l___regBuiltin_Lean_Elab_Command_expandInitialize___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_expandInitialize___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandInitialize___closed__1); -l___regBuiltin_Lean_Elab_Command_expandInitialize___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_expandInitialize___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandInitialize___closed__2); -l___regBuiltin_Lean_Elab_Command_expandInitialize___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_expandInitialize___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandInitialize___closed__3); res = l___regBuiltin_Lean_Elab_Command_expandInitialize(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l___regBuiltin_Lean_Elab_Command_expandBuiltinInitialize___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_expandBuiltinInitialize___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandBuiltinInitialize___closed__1); -l___regBuiltin_Lean_Elab_Command_expandBuiltinInitialize___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_expandBuiltinInitialize___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandBuiltinInitialize___closed__2); -l___regBuiltin_Lean_Elab_Command_expandBuiltinInitialize___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_expandBuiltinInitialize___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandBuiltinInitialize___closed__3); res = l___regBuiltin_Lean_Elab_Command_expandBuiltinInitialize(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); diff --git a/stage0/stdlib/Lean/Elab/DefView.c b/stage0/stdlib/Lean/Elab/DefView.c index 7ed2c30935..b1487e8ff9 100644 --- a/stage0/stdlib/Lean/Elab/DefView.c +++ b/stage0/stdlib/Lean/Elab/DefView.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Elab.DefView -// Imports: Init Std.ShareCommon Lean.Util.CollectLevelParams Lean.Util.FoldConsts Lean.Elab.CollectFVars Lean.Elab.Command Lean.Elab.SyntheticMVars Lean.Elab.Binders Lean.Elab.DeclUtil +// Imports: Init Std.ShareCommon Lean.Parser.Command Lean.Util.CollectLevelParams Lean.Util.FoldConsts Lean.Elab.CollectFVars Lean.Elab.Command Lean.Elab.SyntheticMVars Lean.Elab.Binders Lean.Elab.DeclUtil #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -23,7 +23,7 @@ lean_object* l_Lean_Elab_expandOptDeclSig(lean_object*); lean_object* l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__9; lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* lean_erase_macro_scopes(lean_object*); -lean_object* l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__17; +extern lean_object* l_Lean_Parser_Command_abbrev___elambda__1___closed__2; lean_object* l_Lean_Elab_DefKind_isExample_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_toAttributeKind___at_Lean_Elab_Command_mkDefViewOfInstance___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___spec__8___rarg(lean_object*); @@ -65,6 +65,7 @@ lean_object* l_Lean_Elab_Command_MkInstanceName_mkFreshInstanceName___rarg___box lean_object* l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__2; lean_object* lean_string_utf8_byte_size(lean_object*); lean_object* l_Lean_Elab_DefKind_isDefOrAbbrevOrOpaque_match__1(lean_object*); +extern lean_object* l_Lean_Parser_Command_example___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_mkDefViewOfConstant(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_mkDefViewOfDef(lean_object*, lean_object*); uint8_t l_Lean_Elab_DefKind_isExample(uint8_t); @@ -82,10 +83,8 @@ lean_object* l_Lean_Elab_Command_mkDefViewOfExample(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_mkDefView___closed__2; lean_object* l_Lean_Elab_Command_MkInstanceName_collect_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_MkInstanceName_append(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_isDefLike___closed__4; lean_object* l_Lean_Elab_toAttributeKind___at_Lean_Elab_Command_mkDefViewOfInstance___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_mkDefViewOfConstant___closed__3; -lean_object* l_Lean_Elab_Command_isDefLike___closed__8; lean_object* l_Std_RBNode_setBlack___rarg(lean_object*); lean_object* l_Lean_Elab_mkFreshInstanceName(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_mkDefViewOfConstant_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -96,7 +95,6 @@ lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l_Lean_Elab_toAttributeKind___at_Lean_Elab_Command_mkDefViewOfInstance___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__6; extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__29; -lean_object* l_Lean_Elab_Command_isDefLike___closed__2; lean_object* l_Lean_Elab_Command_mkDefViewOfConstant___closed__1; lean_object* l_Lean_Elab_Command_isDefLike___closed__1; lean_object* l_String_capitalize(lean_object*); @@ -122,7 +120,6 @@ lean_object* l_Lean_Elab_Command_mkDefViewOfTheorem(lean_object*, lean_object*); uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__11; lean_object* l_Std_RBNode_find___at_Lean_Elab_Command_MkInstanceName_collect___spec__2(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_isDefLike___closed__9; extern lean_object* l_Lean_Elab_Term_elabForall___closed__2; uint32_t lean_string_utf8_get(lean_object*, lean_object*); extern lean_object* l___regBuiltin_Lean_Elab_Term_elabProp___closed__2; @@ -150,6 +147,7 @@ uint8_t l_String_isEmpty(lean_object*); lean_object* l_Lean_Elab_Command_mkDefViewOfTheorem_match__1(lean_object*); lean_object* lean_environment_main_module(lean_object*); lean_object* l_Lean_Elab_Command_MkInstanceName_isFirst(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Term_type___elambda__1___closed__17; lean_object* l_Lean_Elab_Command_mkDefViewOfInstance_match__2(lean_object*); lean_object* l_Lean_Elab_Command_getCurrMacroScope(lean_object*, lean_object*, lean_object*); uint8_t l_Std_RBNode_isRed___rarg(lean_object*); @@ -160,8 +158,8 @@ lean_object* l_Lean_Elab_Command_MkInstanceName_collect_match__2(lean_object*); lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_DefView___hyg_965_(lean_object*); uint8_t l_Lean_Name_isAnonymous(lean_object*); extern lean_object* l_Lean_Elab_toAttributeKind___rarg___closed__1; +extern lean_object* l_Lean_Parser_Term_prop___elambda__1___closed__5; lean_object* l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__10; -lean_object* l_Lean_Elab_Command_isDefLike___closed__6; lean_object* l_Lean_Elab_Command_getMainModule___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__25; lean_object* l_Lean_Elab_Command_mkDefViewOfDef_match__1___rarg(lean_object*, lean_object*); @@ -183,8 +181,6 @@ lean_object* l_Lean_Elab_Command_mkDefViewOfTheorem_match__1___rarg(lean_object* lean_object* l_Lean_Elab_Command_MkInstanceName_collect_match__1(lean_object*); lean_object* l_Lean_Elab_Command_mkDefViewOfInstance_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_MkInstanceName_mkFreshInstanceName(lean_object*); -lean_object* l_Lean_Elab_Command_isDefLike___closed__3; -lean_object* l_Lean_Elab_Command_isDefLike___closed__5; lean_object* l_Lean_Elab_DefKind_isExample___boxed(lean_object*); extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); @@ -194,7 +190,6 @@ lean_object* l_Lean_Elab_Command_mkDefView___closed__1; extern lean_object* l_Lean_Meta_mkArbitrary___rarg___closed__1; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); uint8_t l_List_isEmpty___rarg(lean_object*); -lean_object* l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__18; lean_object* l_Lean_Elab_Command_getScope___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__5; lean_object* l_Lean_Elab_mkUnusedBaseName___at_Lean_Elab_Command_MkInstanceName_main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -208,11 +203,12 @@ lean_object* l_Lean_Elab_Command_mkDefViewOfExample_match__1(lean_object*); lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_mkDefViewOfDef_match__1(lean_object*); lean_object* l_Lean_Elab_Command_mkDefViewOfInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_isDefLike___closed__7; extern lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_180____closed__1; lean_object* l_Lean_Elab_Command_mkDefViewOfInstance_match__2___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_891____closed__1; +extern lean_object* l_Lean_Parser_Command_constant___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_MkInstanceName_main(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Command_theorem___elambda__1___closed__2; extern lean_object* l_Lean_Meta_mkArbitrary___rarg___closed__2; lean_object* l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__14; uint8_t lean_string_dec_eq(lean_object*, lean_object*); @@ -3228,24 +3224,16 @@ return x_3; static lean_object* _init_l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__7() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("Prop"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__8() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___regBuiltin_Lean_Elab_Term_elabProp___closed__2; -x_2 = l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__7; +x_2 = l_Lean_Parser_Term_prop___elambda__1___closed__5; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__9() { +static lean_object* _init_l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -3257,21 +3245,37 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } +static lean_object* _init_l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___regBuiltin_Lean_Elab_Term_elabTypeStx___closed__2; +x_2 = l_Lean_Parser_Term_type___elambda__1___closed__17; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} static lean_object* _init_l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__10() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("Type"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___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; } } static lean_object* _init_l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___regBuiltin_Lean_Elab_Term_elabTypeStx___closed__2; +x_1 = l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__8; x_2 = l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__10; -x_3 = lean_alloc_ctor(0, 2, 0); +x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; @@ -3281,11 +3285,11 @@ static lean_object* _init_l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkI _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); +x_1 = l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__7; x_2 = l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__11; x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); return x_3; } } @@ -3293,7 +3297,7 @@ static lean_object* _init_l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkI _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__9; +x_1 = l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__6; x_2 = l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__12; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -3305,7 +3309,7 @@ static lean_object* _init_l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkI _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__8; +x_1 = l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__4; x_2 = l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__13; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -3317,7 +3321,7 @@ static lean_object* _init_l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkI _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__6; +x_1 = l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__2; x_2 = l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__14; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -3328,32 +3332,8 @@ return x_3; static lean_object* _init_l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__16() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__4; -x_2 = l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__15; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__17() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__2; -x_2 = l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__16; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__18() { -_start: -{ lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__17; +x_1 = l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__15; x_2 = l_Std_RBMap_ofList___at___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___spec__1(x_1); return x_2; } @@ -3362,7 +3342,7 @@ static lean_object* _init_l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkI _start: { lean_object* x_1; -x_1 = l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__18; +x_1 = l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__16; return x_1; } } @@ -5223,60 +5203,6 @@ return x_20; static lean_object* _init_l_Lean_Elab_Command_isDefLike___closed__1() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("abbrev"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_isDefLike___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l_Lean_Elab_Command_isDefLike___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Command_isDefLike___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("theorem"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_isDefLike___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l_Lean_Elab_Command_isDefLike___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Command_isDefLike___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("constant"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_isDefLike___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l_Lean_Elab_Command_isDefLike___closed__5; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Command_isDefLike___closed__7() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Instances___hyg_180____closed__1; @@ -5284,30 +5210,12 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_isDefLike___closed__8() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("example"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_isDefLike___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l_Lean_Elab_Command_isDefLike___closed__8; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} uint8_t l_Lean_Elab_Command_isDefLike(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; uint8_t x_4; x_2 = l_Lean_Syntax_getKind(x_1); -x_3 = l_Lean_Elab_Command_isDefLike___closed__2; +x_3 = l_Lean_Parser_Command_abbrev___elambda__1___closed__2; x_4 = lean_name_eq(x_2, x_3); if (x_4 == 0) { @@ -5317,22 +5225,22 @@ x_6 = lean_name_eq(x_2, x_5); if (x_6 == 0) { lean_object* x_7; uint8_t x_8; -x_7 = l_Lean_Elab_Command_isDefLike___closed__4; +x_7 = l_Lean_Parser_Command_theorem___elambda__1___closed__2; x_8 = lean_name_eq(x_2, x_7); if (x_8 == 0) { lean_object* x_9; uint8_t x_10; -x_9 = l_Lean_Elab_Command_isDefLike___closed__6; +x_9 = l_Lean_Parser_Command_constant___elambda__1___closed__2; x_10 = lean_name_eq(x_2, x_9); if (x_10 == 0) { lean_object* x_11; uint8_t x_12; -x_11 = l_Lean_Elab_Command_isDefLike___closed__7; +x_11 = l_Lean_Elab_Command_isDefLike___closed__1; x_12 = lean_name_eq(x_2, x_11); if (x_12 == 0) { lean_object* x_13; uint8_t x_14; -x_13 = l_Lean_Elab_Command_isDefLike___closed__9; +x_13 = l_Lean_Parser_Command_example___elambda__1___closed__2; x_14 = lean_name_eq(x_2, x_13); lean_dec(x_2); return x_14; @@ -5421,7 +5329,7 @@ _start: lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_inc(x_2); x_6 = l_Lean_Syntax_getKind(x_2); -x_7 = l_Lean_Elab_Command_isDefLike___closed__2; +x_7 = l_Lean_Parser_Command_abbrev___elambda__1___closed__2; x_8 = lean_name_eq(x_6, x_7); if (x_8 == 0) { @@ -5431,22 +5339,22 @@ x_10 = lean_name_eq(x_6, x_9); if (x_10 == 0) { lean_object* x_11; uint8_t x_12; -x_11 = l_Lean_Elab_Command_isDefLike___closed__4; +x_11 = l_Lean_Parser_Command_theorem___elambda__1___closed__2; x_12 = lean_name_eq(x_6, x_11); if (x_12 == 0) { lean_object* x_13; uint8_t x_14; -x_13 = l_Lean_Elab_Command_isDefLike___closed__6; +x_13 = l_Lean_Parser_Command_constant___elambda__1___closed__2; x_14 = lean_name_eq(x_6, x_13); if (x_14 == 0) { lean_object* x_15; uint8_t x_16; -x_15 = l_Lean_Elab_Command_isDefLike___closed__7; +x_15 = l_Lean_Elab_Command_isDefLike___closed__1; x_16 = lean_name_eq(x_6, x_15); if (x_16 == 0) { lean_object* x_17; uint8_t x_18; -x_17 = l_Lean_Elab_Command_isDefLike___closed__9; +x_17 = l_Lean_Parser_Command_example___elambda__1___closed__2; x_18 = lean_name_eq(x_6, x_17); lean_dec(x_6); if (x_18 == 0) @@ -5558,6 +5466,7 @@ return x_3; } lean_object* initialize_Init(lean_object*); lean_object* initialize_Std_ShareCommon(lean_object*); +lean_object* initialize_Lean_Parser_Command(lean_object*); lean_object* initialize_Lean_Util_CollectLevelParams(lean_object*); lean_object* initialize_Lean_Util_FoldConsts(lean_object*); lean_object* initialize_Lean_Elab_CollectFVars(lean_object*); @@ -5576,6 +5485,9 @@ lean_dec_ref(res); res = initialize_Std_ShareCommon(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Parser_Command(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); res = initialize_Lean_Util_CollectLevelParams(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -5633,10 +5545,6 @@ l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacemen lean_mark_persistent(l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__15); l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__16 = _init_l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__16(); lean_mark_persistent(l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__16); -l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__17 = _init_l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__17(); -lean_mark_persistent(l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__17); -l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__18 = _init_l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__18(); -lean_mark_persistent(l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements___closed__18); l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements = _init_l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements(); lean_mark_persistent(l___private_Lean_Elab_DefView_0__Lean_Elab_Command_MkInstanceName_kindReplacements); l_Lean_Elab_Command_mkDefViewOfConstant___closed__1 = _init_l_Lean_Elab_Command_mkDefViewOfConstant___closed__1(); @@ -5655,22 +5563,6 @@ l_Lean_Elab_Command_mkDefViewOfExample___closed__2 = _init_l_Lean_Elab_Command_m lean_mark_persistent(l_Lean_Elab_Command_mkDefViewOfExample___closed__2); l_Lean_Elab_Command_isDefLike___closed__1 = _init_l_Lean_Elab_Command_isDefLike___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_isDefLike___closed__1); -l_Lean_Elab_Command_isDefLike___closed__2 = _init_l_Lean_Elab_Command_isDefLike___closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_isDefLike___closed__2); -l_Lean_Elab_Command_isDefLike___closed__3 = _init_l_Lean_Elab_Command_isDefLike___closed__3(); -lean_mark_persistent(l_Lean_Elab_Command_isDefLike___closed__3); -l_Lean_Elab_Command_isDefLike___closed__4 = _init_l_Lean_Elab_Command_isDefLike___closed__4(); -lean_mark_persistent(l_Lean_Elab_Command_isDefLike___closed__4); -l_Lean_Elab_Command_isDefLike___closed__5 = _init_l_Lean_Elab_Command_isDefLike___closed__5(); -lean_mark_persistent(l_Lean_Elab_Command_isDefLike___closed__5); -l_Lean_Elab_Command_isDefLike___closed__6 = _init_l_Lean_Elab_Command_isDefLike___closed__6(); -lean_mark_persistent(l_Lean_Elab_Command_isDefLike___closed__6); -l_Lean_Elab_Command_isDefLike___closed__7 = _init_l_Lean_Elab_Command_isDefLike___closed__7(); -lean_mark_persistent(l_Lean_Elab_Command_isDefLike___closed__7); -l_Lean_Elab_Command_isDefLike___closed__8 = _init_l_Lean_Elab_Command_isDefLike___closed__8(); -lean_mark_persistent(l_Lean_Elab_Command_isDefLike___closed__8); -l_Lean_Elab_Command_isDefLike___closed__9 = _init_l_Lean_Elab_Command_isDefLike___closed__9(); -lean_mark_persistent(l_Lean_Elab_Command_isDefLike___closed__9); l_Lean_Elab_Command_mkDefView___closed__1 = _init_l_Lean_Elab_Command_mkDefView___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_mkDefView___closed__1); l_Lean_Elab_Command_mkDefView___closed__2 = _init_l_Lean_Elab_Command_mkDefView___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Inductive.c b/stage0/stdlib/Lean/Elab/Inductive.c index c672c702aa..465a1714ef 100644 --- a/stage0/stdlib/Lean/Elab/Inductive.c +++ b/stage0/stdlib/Lean/Elab/Inductive.c @@ -147,7 +147,6 @@ lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstruct lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabHeaderAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUsed___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_USize_decLt(size_t, size_t); -lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_4____closed__2; lean_object* l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateParams___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__10___lambda__1(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_2533____closed__5; @@ -295,6 +294,7 @@ lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_getResultingUn lean_object* l_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabSyntheticHole___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__2___lambda__5___closed__2; lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___rarg___lambda__2___closed__1; +extern lean_object* l_Lean_Parser_Command_inductive___elambda__1___closed__1; lean_object* l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_collectUsedFVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_let(lean_object*, lean_object*, lean_object*, lean_object*); @@ -551,17 +551,9 @@ lean_object* lean_add_decl(lean_object*, lean_object*); static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_4____closed__1() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("inductive"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_4____closed__2() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_891____closed__1; -x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_4____closed__1; +x_2 = l_Lean_Parser_Command_inductive___elambda__1___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -570,7 +562,7 @@ lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_4_(lean _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_4____closed__2; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_4____closed__1; x_3 = l_Lean_registerTraceClass(x_2, x_1); return x_3; } @@ -8669,7 +8661,7 @@ lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean x_50 = lean_ctor_get(x_44, 1); lean_inc(x_50); lean_dec(x_44); -x_51 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_4____closed__2; +x_51 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_4____closed__1; x_52 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__5(x_51, x_6, x_7, x_8, x_9, x_10, x_11, x_50); x_53 = lean_ctor_get(x_52, 0); lean_inc(x_53); @@ -8747,7 +8739,7 @@ x_38 = l_Lean_KernelException_toMessageData___closed__15; x_39 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_39, 0, x_37); lean_ctor_set(x_39, 1, x_38); -x_40 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_4____closed__2; +x_40 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_4____closed__1; x_41 = l_Lean_addTrace___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_updateResultingUniverse___spec__4(x_40, x_39, x_6, x_7, x_8, x_9, x_10, x_11, x_23); lean_dec(x_11); lean_dec(x_10); @@ -16403,8 +16395,6 @@ if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_4____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_4____closed__1(); lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_4____closed__1); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_4____closed__2 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_4____closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_4____closed__2); res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Inductive___hyg_4_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); diff --git a/stage0/stdlib/Lean/Elab/MutualDef.c b/stage0/stdlib/Lean/Elab/MutualDef.c index af8f1b2d25..65d2418498 100644 --- a/stage0/stdlib/Lean/Elab/MutualDef.c +++ b/stage0/stdlib/Lean/Elab/MutualDef.c @@ -128,6 +128,7 @@ lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_Elab_Term_expandLetEqnsDecl(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2___closed__4; lean_object* l_Lean_Elab_expandDeclId___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Command_declValEqns___elambda__1___closed__2; extern lean_object* l_Array_getEvenElems___rarg___closed__1; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -180,6 +181,7 @@ lean_object* l_Lean_Elab_Term_elabTypeWithAutoBoundImplicit___rarg(lean_object*, lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__5___closed__1; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Term_whereDecls_formatter___closed__2; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__2; lean_object* l___private_Lean_Elab_Command_0__Lean_Elab_Command_getVarDecls(lean_object*); @@ -264,7 +266,6 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkLetRecsToLif lean_object* l_Lean_Expr_collectMVars(lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__4___closed__1; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__4; lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); @@ -294,7 +295,6 @@ extern lean_object* l_Lean_Expr_instInhabitedExpr___closed__1; lean_object* l_List_forM___at_Lean_Elab_Term_MutualClosure_main___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabMutualDef___boxed__const__1; -lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__2; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__6; lean_object* l_Std_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandMatchAltsWhereDecls(lean_object*, lean_object*, lean_object*, lean_object*); @@ -353,10 +353,8 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__7 lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getAllUserLevelNames___boxed(lean_object*); extern lean_object* l_Lean_KernelException_toMessageData___closed__15; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getFunName___lambda__1___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__3; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getFunName___closed__3; lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_MutualClosure_main___spec__3(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_myMacro____x40_Init_Notation___hyg_1625____closed__2; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_fixpoint_match__1___rarg(lean_object*, lean_object*); uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isTheorem___spec__1(lean_object*, size_t, size_t); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_resetModified(lean_object*); @@ -495,7 +493,6 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkC lean_object* l_Array_appendCore___rarg(lean_object*, lean_object*); uint8_t l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isTheorem(lean_object*); lean_object* l_Lean_Elab_Term_withDeclName___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__5; lean_object* l_Lean_Meta_Closure_mkForall(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkKinds___lambda__1___closed__3; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_isModified___boxed(lean_object*); @@ -568,7 +565,6 @@ lean_object* l_Lean_Elab_instantiateMVarsAtPreDecls(lean_object*, lean_object*, lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders_match__1(lean_object*); lean_object* l_List_forM___at_Lean_Elab_Term_MutualClosure_main___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_pushNewVars(lean_object*, lean_object*); -extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; lean_object* l_Lean_Expr_FindImpl_findM_x3f_visit(lean_object*, size_t, lean_object*, lean_object*); extern lean_object* l_Lean_CollectMVars_instInhabitedState___closed__1; lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_fixpoint(lean_object*); @@ -5389,42 +5385,6 @@ static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_decl _start: { lean_object* x_1; -x_1 = lean_mk_string("declValEqns"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("whereDecls"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_myMacro____x40_Init_Notation___hyg_1625____closed__2; -x_2 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__5() { -_start: -{ -lean_object* x_1; x_1 = lean_mk_string("unexpected definition value"); return x_1; } @@ -5439,19 +5399,19 @@ x_5 = l_Lean_Syntax_isOfKind(x_1, x_4); if (x_5 == 0) { lean_object* x_6; uint8_t x_7; -x_6 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__2; +x_6 = l_Lean_Parser_Command_declValEqns___elambda__1___closed__2; lean_inc(x_1); x_7 = l_Lean_Syntax_isOfKind(x_1, x_6); if (x_7 == 0) { lean_object* x_8; uint8_t x_9; -x_8 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__4; +x_8 = l_Lean_Parser_Term_whereDecls_formatter___closed__2; lean_inc(x_1); x_9 = l_Lean_Syntax_isOfKind(x_1, x_8); if (x_9 == 0) { lean_object* x_10; lean_object* x_11; -x_10 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__5; +x_10 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__1; x_11 = l_Lean_Macro_throwErrorAt___rarg(x_1, x_10, x_2, x_3); lean_dec(x_1); return x_11; @@ -18705,14 +18665,6 @@ l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst__ lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___boxed__const__1); l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__1 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__1(); lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__1); -l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__2 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__2); -l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__3 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__3); -l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__4 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__4); -l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__5 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerm___closed__5); l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___boxed__const__1 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___boxed__const__1(); lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___boxed__const__1); l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getFunName___closed__1 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getFunName___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Main.c b/stage0/stdlib/Lean/Elab/PreDefinition/Main.c index c3a5e59b00..2979f6cb91 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Main.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Main.c @@ -40,7 +40,6 @@ lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Lean_Elab_addAndCompileUnsafeRec(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_isNonRecursive___lambda__1___boxed(lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); -extern lean_object* l_Lean_Meta_withoutPostponingUniverseConstraintsImp___rarg___closed__3; lean_object* lean_array_get_size(lean_object*); lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofList(lean_object*); @@ -54,6 +53,7 @@ lean_object* l_Std_mkHashMap___at___private_Lean_Elab_PreDefinition_Main_0__Lean extern lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_reduceRec___rarg___lambda__2___closed__1; lean_object* l_Lean_MessageData_joinSep(lean_object*, lean_object*); lean_object* l_List_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__2(lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___closed__1; lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_addSCC___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__20(lean_object*, lean_object*); uint8_t l_USize_decLt(size_t, size_t); lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_ensureNoUnassignedMVarsAtPreDef(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -81,6 +81,7 @@ uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_PreDefinition_Main_0__Le lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__25___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_addSCC_add___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__21___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___closed__2; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__8(lean_object*, size_t, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__8___lambda__1___closed__3; uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_addPreDefinitions___spec__5(lean_object*, size_t, size_t); @@ -97,7 +98,6 @@ lean_object* lean_st_mk_ref(lean_object*, lean_object*); extern lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_resetOnStack___rarg___closed__1; lean_object* l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__5___closed__1; lean_object* l_List_forM___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__24(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Meta_withoutPostponingUniverseConstraintsImp___rarg___closed__2; extern lean_object* l_Lean_Elab_instInhabitedPreDefinition; lean_object* lean_array_to_list(lean_object*, lean_object*); lean_object* l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__5___closed__2; @@ -124,14 +124,15 @@ extern lean_object* l_Option_get_x21___rarg___closed__4; lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_isNonRecursive_match__1___rarg(lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_isNonRecursive(lean_object*); lean_object* l_List_redLength___rarg(lean_object*); +extern lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_elimRecursion___lambda__2___closed__1; lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_getMVarsAtPreDef_match__1___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__26(lean_object*, size_t, size_t, lean_object*); -extern lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_elimRecursion___lambda__2___closed__2; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__8___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Std_AssocList_foldlM___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__15(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___closed__3; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__8___lambda__1___closed__2; lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -145,7 +146,6 @@ lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Mai lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__26___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_AssocList_contains___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__12___boxed(lean_object*, lean_object*); lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); -extern lean_object* l_Lean_Meta_withoutPostponingUniverseConstraintsImp___rarg___closed__1; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__8___lambda__1___closed__4; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__8___lambda__3(lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -153,21 +153,22 @@ lean_object* lean_mk_array(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_logUnassignedUsingErrorInfos(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_getDataOf___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__6(lean_object*, lean_object*); uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_addPreDefinitions___spec__4(lean_object*, size_t, size_t); +extern lean_object* l_Lean_PrettyPrinter_Formatter_symbol_formatter___closed__1; extern lean_object* l_Lean_Expr_FoldConstsImpl_initCache; lean_object* l_Lean_Elab_WFRecursion___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentD(lean_object*); +lean_object* l_ReaderT_instMonadReaderT___rarg(lean_object*); lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_sccAux___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__9___lambda__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l_Lean_Expr_FindImpl_findM_x3f_visit(lean_object*, size_t, lean_object*, lean_object*); extern lean_object* l_Lean_CollectMVars_instInhabitedState___closed__1; extern lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_getDataOf___rarg___closed__1; +extern lean_object* l_Lean_PrettyPrinter_Formatter_symbol_formatter___closed__2; lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_addSCC___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__20___boxed(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__2; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_getMVarsAtPreDef(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Meta_CheckAssignment_checkFVar___closed__1; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__3(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__8___lambda__3___closed__1; -extern lean_object* l_Lean_Meta_CheckAssignment_checkFVar___closed__2; lean_object* l_List_forM___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__19(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_isNonRecursive___boxed(lean_object*); @@ -588,6 +589,33 @@ return x_27; } } } +static lean_object* _init_l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_PrettyPrinter_Formatter_symbol_formatter___closed__2; +x_2 = l_ReaderT_instMonadReaderT___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___closed__1; +x_2 = l_ReaderT_instMonadReaderT___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___closed__2; +x_2 = l_ReaderT_instMonadReaderT___rarg(x_1); +return x_2; +} +} lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { @@ -596,11 +624,11 @@ x_9 = lean_array_get_size(x_1); x_10 = lean_usize_of_nat(x_9); lean_dec(x_9); x_11 = 0; -x_12 = l_Lean_Meta_withoutPostponingUniverseConstraintsImp___rarg___closed__1; -x_13 = l_Lean_Meta_withoutPostponingUniverseConstraintsImp___rarg___closed__2; -x_14 = l_Lean_Meta_withoutPostponingUniverseConstraintsImp___rarg___closed__3; -x_15 = l_Lean_Meta_CheckAssignment_checkFVar___closed__1; -x_16 = l_Lean_Meta_CheckAssignment_checkFVar___closed__2; +x_12 = l_Lean_PrettyPrinter_Formatter_symbol_formatter___closed__1; +x_13 = l_Lean_PrettyPrinter_Formatter_symbol_formatter___closed__2; +x_14 = l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___closed__1; +x_15 = l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___closed__2; +x_16 = l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___closed__3; x_17 = lean_box(0); lean_inc(x_7); lean_inc(x_6); @@ -2950,7 +2978,7 @@ lean_ctor_set(x_28, 0, x_27); x_29 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_29, 0, x_26); lean_ctor_set(x_29, 1, x_28); -x_30 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_elimRecursion___lambda__2___closed__2; +x_30 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_elimRecursion___lambda__2___closed__1; x_31 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_31, 0, x_29); lean_ctor_set(x_31, 1, x_30); @@ -4222,7 +4250,7 @@ x_17 = l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs(x_ x_18 = lean_array_get_size(x_17); x_19 = lean_usize_of_nat(x_18); lean_dec(x_18); -x_20 = l_Lean_Meta_withoutPostponingUniverseConstraintsImp___rarg___closed__3; +x_20 = l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___closed__1; x_21 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__8(x_20, x_11, x_17, x_19, x_11, x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_16); if (lean_obj_tag(x_21) == 0) { @@ -4439,6 +4467,12 @@ l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Ela lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__1); l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__2 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__2(); lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__2); +l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___closed__1 = _init_l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___closed__1); +l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___closed__2 = _init_l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___closed__2); +l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___closed__3 = _init_l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___closed__3); l___private_Lean_Util_SCC_0__Lean_SCC_sccAux___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__9___boxed__const__1 = _init_l___private_Lean_Util_SCC_0__Lean_SCC_sccAux___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__9___boxed__const__1(); lean_mark_persistent(l___private_Lean_Util_SCC_0__Lean_SCC_sccAux___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__9___boxed__const__1); l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__5___closed__1 = _init_l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__5___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Structural.c b/stage0/stdlib/Lean/Elab/PreDefinition/Structural.c index 8e9ee70e69..15a5f21c67 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Structural.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Structural.c @@ -245,6 +245,7 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structu lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_mkBRecOn___spec__4(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_replaceRecApps_loop___spec__4___lambda__2___closed__2; lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_replaceRecApps_loop___spec__4___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Command_declValSimple___elambda__1___closed__4; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_getIndexMinPos___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_replaceRecApps_loop___closed__1; lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_mkBRecOn___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -350,7 +351,6 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structu lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_toBelowAux_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_orelse_x27___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_replaceRecApps_loop___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_elimRecursion___lambda__2___closed__2; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); lean_object* l_List_map___at_Lean_MessageData_instCoeListExprMessageData___spec__1(lean_object*); @@ -12955,16 +12955,8 @@ return x_87; static lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_elimRecursion___lambda__2___closed__1() { _start: { -lean_object* x_1; -x_1 = lean_mk_string(" :=\n"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_elimRecursion___lambda__2___closed__2() { -_start: -{ lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_elimRecursion___lambda__2___closed__1; +x_1 = l_Lean_Parser_Command_declValSimple___elambda__1___closed__4; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } @@ -13070,7 +13062,7 @@ lean_dec(x_28); x_30 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_30, 0, x_26); lean_ctor_set(x_30, 1, x_29); -x_31 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_elimRecursion___lambda__2___closed__2; +x_31 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_elimRecursion___lambda__2___closed__1; x_32 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_32, 0, x_30); lean_ctor_set(x_32, 1, x_31); @@ -15907,8 +15899,6 @@ l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_elimRecur lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_elimRecursion___lambda__1___closed__2); l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_elimRecursion___lambda__2___closed__1 = _init_l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_elimRecursion___lambda__2___closed__1(); lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_elimRecursion___lambda__2___closed__1); -l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_elimRecursion___lambda__2___closed__2 = _init_l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_elimRecursion___lambda__2___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_Structural_elimRecursion___lambda__2___closed__2); l_Lean_Expr_withAppAux___at_Lean_Elab_Structural_addSmartUnfoldingDefAux_visit___spec__2___boxed__const__1 = _init_l_Lean_Expr_withAppAux___at_Lean_Elab_Structural_addSmartUnfoldingDefAux_visit___spec__2___boxed__const__1(); lean_mark_persistent(l_Lean_Expr_withAppAux___at_Lean_Elab_Structural_addSmartUnfoldingDefAux_visit___spec__2___boxed__const__1); l_Lean_Expr_withAppAux___at_Lean_Elab_Structural_addSmartUnfoldingDefAux_visit___spec__4___boxed__const__1 = _init_l_Lean_Expr_withAppAux___at_Lean_Elab_Structural_addSmartUnfoldingDefAux_visit___spec__4___boxed__const__1(); diff --git a/stage0/stdlib/Lean/Elab/Print.c b/stage0/stdlib/Lean/Elab/Print.c index d4161142af..2e809accca 100644 --- a/stage0/stdlib/Lean/Elab/Print.c +++ b/stage0/stdlib/Lean/Elab/Print.c @@ -19,14 +19,12 @@ lean_object* l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Com size_t l_USize_add(size_t, size_t); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); -lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__4; lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike___closed__1; lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf___closed__5; lean_object* l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_ppGoal_ppVars___closed__1; lean_object* l_List_forM___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_name_mk_string(lean_object*, lean_object*); extern lean_object* l_Lean_MessageData_ofList___closed__3; uint8_t l_USize_decEq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); @@ -36,7 +34,6 @@ lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf___bo lean_object* l_List_forIn_loop___at___private_Lean_Elab_Print_0__Lean_Elab_Command_lparamsToMessageData___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___closed__1; extern lean_object* l_Lean_Elab_Command_commandElabAttribute; -lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__11; lean_object* l_Lean_Elab_Command_elabPrint___closed__6; lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabPrint___closed__2; @@ -44,6 +41,7 @@ extern lean_object* l_Array_empty___closed__1; lean_object* lean_environment_find(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___closed__2; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_CollectAxioms_collect___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Command_private___elambda__1___closed__5; lean_object* l___regBuiltin_Lean_Elab_Command_elabPrint___closed__1; lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabPrint___closed__1; @@ -55,11 +53,10 @@ lean_object* lean_array_get_size(lean_object*); extern lean_object* l_Lean_Meta_assumption___closed__1; lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf___closed__3; lean_object* l_Lean_MessageData_ofList(lean_object*); +extern lean_object* l_Lean_Parser_Command_print___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_elabPrint___closed__4; lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader_match__2___rarg(lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabPrint___closed__2; lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_runLinters___spec__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Elab_Command_elabPrint___closed__3; lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__2; @@ -74,10 +71,7 @@ lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed_ lean_object* l_List_forM___at_Lean_Elab_Command_elabPrintAxioms___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabPrintAxioms___closed__1; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__9; -lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_lparamsToMessageData___closed__3; lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__2; -lean_object* l___regBuiltin_Lean_Elab_Command_elabPrintAxioms___closed__2; lean_object* l_Lean_Syntax_isStrLit_x3f(lean_object*); lean_object* l_Lean_Elab_Command_elabPrint(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_lparamsToMessageData(lean_object*); @@ -102,6 +96,7 @@ lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader(lean_obje lean_object* l_Lean_Elab_Command_elabPrintAxioms___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_resolveGlobalName___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Command_inductive___elambda__1___closed__1; lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printId(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_throwUnknownId___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__20; @@ -111,9 +106,12 @@ extern lean_object* l_Lean_KernelException_toMessageData___closed__3; size_t lean_usize_of_nat(lean_object*); extern lean_object* l_Lean_NameSet_empty; lean_object* l_Lean_ConstantInfo_type(lean_object*); +extern lean_object* l_Lean_Parser_Command_axiom___elambda__1___closed__1; +extern lean_object* l_Lean_Parser_Command_unsafe___elambda__1___closed__5; lean_object* l_Lean_throwUnknownConstant___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwUnknownConstant___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__3(lean_object*); lean_object* l_Lean_Elab_Command_CollectAxioms_State_visited___default; +extern lean_object* l_Lean_Parser_Term_explicitUniv___elambda__1___closed__4; lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_lparamsToMessageData_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__6; lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -126,11 +124,11 @@ lean_object* l_Lean_Syntax_getNumArgs(lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__8; lean_object* l_List_forIn_loop___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___closed__4; uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_List_forM___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_resolveGlobalName___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__5; +extern lean_object* l_Lean_Parser_Command_protected___elambda__1___closed__4; lean_object* l_List_forM___at_Lean_Elab_Command_elabPrintAxioms___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printQuot(uint8_t); lean_object* l_Lean_Elab_Command_CollectAxioms_collect(lean_object*, lean_object*, lean_object*); @@ -138,22 +136,18 @@ lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomLike___b lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___closed__3; lean_object* l_List_forM___at_Lean_Elab_Command_CollectAxioms_collect___spec__2(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__5; -lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__3; lean_object* l_List_forIn_loop___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__10; extern lean_object* l_Lean_Meta_ppGoal_ppVars___closed__3; -lean_object* l___regBuiltin_Lean_Elab_Command_elabPrintAxioms___closed__3; lean_object* l_Lean_Elab_Command_elabPrintAxioms(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_TagDeclarationExtension_isTagged(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore_match__1(lean_object*); extern lean_object* l_Lean_Elab_Term_resolveName___closed__2; lean_object* l_Lean_getConstInfo___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabPrint___closed__3; +extern lean_object* l_Lean_Parser_Command_theorem___elambda__1___closed__1; lean_object* l_Lean_throwUnknownConstant___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabPrint___closed__5; lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__7; -extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printQuot___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); @@ -166,11 +160,13 @@ uint8_t l_List_isEmpty___rarg(lean_object*); lean_object* l_Lean_Elab_Command_getScope___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printQuot___rarg___closed__1; lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_lparamsToMessageData_match__1(lean_object*); +extern lean_object* l_Lean_Parser_Command_printAxioms___elambda__1___closed__2; lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf___closed__4; extern lean_object* l_Lean_MessageData_formatAux___closed__3; lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printQuot___boxed(lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader_match__2(lean_object*); +extern lean_object* l_Lean_Parser_Command_constant___elambda__1___closed__1; lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); uint8_t l_Lean_Syntax_isIdent(lean_object*); @@ -265,21 +261,13 @@ goto _start; static lean_object* _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_lparamsToMessageData___closed__1() { _start: { -lean_object* x_1; -x_1 = lean_mk_string(".{"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_lparamsToMessageData___closed__2() { -_start: -{ lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_lparamsToMessageData___closed__1; +x_1 = l_Lean_Parser_Term_explicitUniv___elambda__1___closed__4; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_lparamsToMessageData___closed__3() { +static lean_object* _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_lparamsToMessageData___closed__2() { _start: { lean_object* x_1; lean_object* x_2; @@ -306,7 +294,7 @@ x_4 = lean_ctor_get(x_1, 1); lean_inc(x_3); x_5 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_5, 0, x_3); -x_6 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_lparamsToMessageData___closed__2; +x_6 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_lparamsToMessageData___closed__1; x_7 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_7, 0, x_6); lean_ctor_set(x_7, 1, x_5); @@ -315,7 +303,7 @@ x_9 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_9, 0, x_7); lean_ctor_set(x_9, 1, x_8); x_10 = l_List_forIn_loop___at___private_Lean_Elab_Print_0__Lean_Elab_Command_lparamsToMessageData___spec__1(x_4, x_9); -x_11 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_lparamsToMessageData___closed__3; +x_11 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_lparamsToMessageData___closed__2; x_12 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -416,9 +404,11 @@ return x_2; static lean_object* _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__3() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("private "); -return x_1; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Command_private___elambda__1___closed__5; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; } } static lean_object* _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__4() { @@ -426,7 +416,7 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__3; -x_2 = lean_alloc_ctor(2, 1, 0); +x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } @@ -435,8 +425,8 @@ static lean_object* _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHea _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__4; -x_2 = lean_alloc_ctor(0, 1, 0); +x_1 = l_Lean_Parser_Command_protected___elambda__1___closed__4; +x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } @@ -444,16 +434,18 @@ return x_2; static lean_object* _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__6() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("protected "); -return x_1; +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__5; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; } } static lean_object* _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__6; +x_1 = l_Lean_Parser_Command_unsafe___elambda__1___closed__5; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; @@ -469,34 +461,6 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__9() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("unsafe "); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__10() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__9; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__11() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__10; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { @@ -512,7 +476,7 @@ goto block_147; else { lean_object* x_149; -x_149 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__11; +x_149 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__8; x_10 = x_149; goto block_147; } @@ -576,7 +540,7 @@ lean_dec(x_2); x_30 = lean_ctor_get(x_16, 0); lean_inc(x_30); lean_dec(x_16); -x_31 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__5; +x_31 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__4; x_32 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_32, 0, x_10); lean_ctor_set(x_32, 1, x_31); @@ -616,7 +580,7 @@ return x_9; else { lean_object* x_46; lean_object* x_47; -x_46 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__8; +x_46 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__6; x_47 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_47, 0, x_10); lean_ctor_set(x_47, 1, x_46); @@ -662,7 +626,7 @@ lean_dec(x_2); x_61 = lean_ctor_get(x_16, 0); lean_inc(x_61); lean_dec(x_16); -x_62 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__5; +x_62 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__4; x_63 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_63, 0, x_47); lean_ctor_set(x_63, 1, x_62); @@ -762,7 +726,7 @@ lean_dec(x_2); x_97 = lean_ctor_get(x_82, 0); lean_inc(x_97); lean_dec(x_82); -x_98 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__5; +x_98 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__4; x_99 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_99, 0, x_10); lean_ctor_set(x_99, 1, x_98); @@ -804,7 +768,7 @@ return x_113; else { lean_object* x_114; lean_object* x_115; -x_114 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__8; +x_114 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__6; x_115 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_115, 0, x_10); lean_ctor_set(x_115, 1, x_114); @@ -852,7 +816,7 @@ lean_dec(x_2); x_130 = lean_ctor_get(x_82, 0); lean_inc(x_130); lean_dec(x_82); -x_131 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__5; +x_131 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__4; x_132 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_132, 0, x_115); lean_ctor_set(x_132, 1, x_131); @@ -1219,16 +1183,18 @@ static lean_object* _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_print _start: { lean_object* x_1; -x_1 = lean_mk_string("inductive"); +x_1 = lean_mk_string("constructors:"); return x_1; } } static lean_object* _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___closed__2() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("constructors:"); -return x_1; +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; } } static lean_object* _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___closed__3() { @@ -1236,16 +1202,6 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___closed__2; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___closed__3; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; @@ -1255,7 +1211,7 @@ lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct(lean_o _start: { 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; -x_11 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___closed__1; +x_11 = l_Lean_Parser_Command_inductive___elambda__1___closed__1; x_12 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader(x_11, x_1, x_2, x_5, x_7, x_8, x_9, x_10); x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); @@ -1266,7 +1222,7 @@ x_15 = l_Lean_MessageData_ofList___closed__3; x_16 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_16, 0, x_13); lean_ctor_set(x_16, 1, x_15); -x_17 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___closed__4; +x_17 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___closed__3; x_18 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_18, 0, x_16); lean_ctor_set(x_18, 1, x_17); @@ -1648,35 +1604,11 @@ static lean_object* _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_print _start: { lean_object* x_1; -x_1 = lean_mk_string("axiom"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("theorem"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("constant"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__4() { -_start: -{ -lean_object* x_1; x_1 = lean_mk_string("constructor"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__5() { +static lean_object* _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__2() { _start: { lean_object* x_1; @@ -1727,7 +1659,7 @@ lean_inc(x_15); x_16 = lean_ctor_get(x_13, 2); lean_inc(x_16); lean_dec(x_13); -x_17 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__1; +x_17 = l_Lean_Parser_Command_axiom___elambda__1___closed__1; x_18 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomLike(x_17, x_1, x_15, x_16, x_14, x_2, x_3, x_7); lean_dec(x_2); lean_dec(x_15); @@ -1772,7 +1704,7 @@ lean_inc(x_30); x_31 = lean_ctor_get(x_28, 2); lean_inc(x_31); lean_dec(x_28); -x_32 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__2; +x_32 = l_Lean_Parser_Command_theorem___elambda__1___closed__1; x_33 = 0; x_34 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike(x_32, x_1, x_30, x_31, x_29, x_33, x_2, x_3, x_7); lean_dec(x_2); @@ -1794,7 +1726,7 @@ lean_inc(x_38); x_39 = lean_ctor_get(x_36, 2); lean_inc(x_39); lean_dec(x_36); -x_40 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__3; +x_40 = l_Lean_Parser_Command_constant___elambda__1___closed__1; x_41 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomLike(x_40, x_1, x_38, x_39, x_37, x_2, x_3, x_7); lean_dec(x_2); lean_dec(x_38); @@ -1863,7 +1795,7 @@ lean_inc(x_61); x_62 = lean_ctor_get(x_59, 2); lean_inc(x_62); lean_dec(x_59); -x_63 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__4; +x_63 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__1; x_64 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomLike(x_63, x_1, x_61, x_62, x_60, x_2, x_3, x_7); lean_dec(x_2); lean_dec(x_61); @@ -1884,7 +1816,7 @@ lean_inc(x_68); x_69 = lean_ctor_get(x_66, 2); lean_inc(x_69); lean_dec(x_66); -x_70 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__5; +x_70 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__2; x_71 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomLike(x_70, x_1, x_68, x_69, x_67, x_2, x_3, x_7); lean_dec(x_2); lean_dec(x_68); @@ -2345,24 +2277,6 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabPrint___closed__1 _start: { lean_object* x_1; -x_1 = lean_mk_string("print"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabPrint___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l___regBuiltin_Lean_Elab_Command_elabPrint___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabPrint___closed__3() { -_start: -{ -lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabPrint___boxed), 4, 0); return x_1; } @@ -2372,8 +2286,8 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_elabPrint___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_elabPrint___closed__3; +x_3 = l_Lean_Parser_Command_print___elambda__1___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_elabPrint___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } @@ -4193,24 +4107,6 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabPrintAxioms___clo _start: { lean_object* x_1; -x_1 = lean_mk_string("printAxioms"); -return x_1; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabPrintAxioms___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l___regBuiltin_Lean_Elab_Command_elabPrintAxioms___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabPrintAxioms___closed__3() { -_start: -{ -lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabPrintAxioms___boxed), 4, 0); return x_1; } @@ -4220,8 +4116,8 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l___regBuiltin_Lean_Elab_Command_elabPrintAxioms___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Command_elabPrintAxioms___closed__3; +x_3 = l_Lean_Parser_Command_printAxioms___elambda__1___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Command_elabPrintAxioms___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } @@ -4247,8 +4143,6 @@ l___private_Lean_Elab_Print_0__Lean_Elab_Command_lparamsToMessageData___closed__ lean_mark_persistent(l___private_Lean_Elab_Print_0__Lean_Elab_Command_lparamsToMessageData___closed__1); l___private_Lean_Elab_Print_0__Lean_Elab_Command_lparamsToMessageData___closed__2 = _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_lparamsToMessageData___closed__2(); lean_mark_persistent(l___private_Lean_Elab_Print_0__Lean_Elab_Command_lparamsToMessageData___closed__2); -l___private_Lean_Elab_Print_0__Lean_Elab_Command_lparamsToMessageData___closed__3 = _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_lparamsToMessageData___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Print_0__Lean_Elab_Command_lparamsToMessageData___closed__3); l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__1 = _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__1); l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__2 = _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__2(); @@ -4265,12 +4159,6 @@ l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__7 = _init_l_ lean_mark_persistent(l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__7); l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__8 = _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__8(); lean_mark_persistent(l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__8); -l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__9 = _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__9(); -lean_mark_persistent(l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__9); -l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__10 = _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__10(); -lean_mark_persistent(l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__10); -l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__11 = _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__11(); -lean_mark_persistent(l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__11); l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike___closed__1 = _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Print_0__Lean_Elab_Command_printDefLike___closed__1); l___private_Lean_Elab_Print_0__Lean_Elab_Command_printQuot___rarg___closed__1 = _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_printQuot___rarg___closed__1(); @@ -4281,18 +4169,10 @@ l___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___closed__2 = _init lean_mark_persistent(l___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___closed__2); l___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___closed__3 = _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___closed__3(); lean_mark_persistent(l___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___closed__3); -l___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___closed__4 = _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___closed__4); l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__1 = _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__1); l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__2 = _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__2(); lean_mark_persistent(l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__2); -l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__3 = _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__3); -l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__4 = _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__4); -l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__5 = _init_l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__5); l_Lean_Elab_Command_elabPrint___closed__1 = _init_l_Lean_Elab_Command_elabPrint___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_elabPrint___closed__1); l_Lean_Elab_Command_elabPrint___closed__2 = _init_l_Lean_Elab_Command_elabPrint___closed__2(); @@ -4307,10 +4187,6 @@ l_Lean_Elab_Command_elabPrint___closed__6 = _init_l_Lean_Elab_Command_elabPrint_ lean_mark_persistent(l_Lean_Elab_Command_elabPrint___closed__6); l___regBuiltin_Lean_Elab_Command_elabPrint___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabPrint___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabPrint___closed__1); -l___regBuiltin_Lean_Elab_Command_elabPrint___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabPrint___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabPrint___closed__2); -l___regBuiltin_Lean_Elab_Command_elabPrint___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabPrint___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabPrint___closed__3); res = l___regBuiltin_Lean_Elab_Command_elabPrint(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -4330,10 +4206,6 @@ l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf___closed__5 = _in lean_mark_persistent(l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomsOf___closed__5); l___regBuiltin_Lean_Elab_Command_elabPrintAxioms___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabPrintAxioms___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabPrintAxioms___closed__1); -l___regBuiltin_Lean_Elab_Command_elabPrintAxioms___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabPrintAxioms___closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabPrintAxioms___closed__2); -l___regBuiltin_Lean_Elab_Command_elabPrintAxioms___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabPrintAxioms___closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabPrintAxioms___closed__3); res = l___regBuiltin_Lean_Elab_Command_elabPrintAxioms(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); diff --git a/stage0/stdlib/Lean/Elab/Structure.c b/stage0/stdlib/Lean/Elab/Structure.c index c7d8da4e41..0e7a6bd03c 100644 --- a/stage0/stdlib/Lean/Elab/Structure.c +++ b/stage0/stdlib/Lean/Elab/Structure.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Elab.Structure -// Imports: Init Lean.Meta.Closure Lean.Elab.Command Lean.Elab.DeclModifiers Lean.Elab.DeclUtil Lean.Elab.Inductive +// Imports: Init Lean.Parser.Command Lean.Meta.Closure Lean.Elab.Command Lean.Elab.DeclModifiers Lean.Elab.DeclUtil Lean.Elab.Inductive #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -127,7 +127,6 @@ lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_E lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamAux_match__1(lean_object*); lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_getEvenElems___rarg___closed__1; -lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__9; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___closed__3; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -153,6 +152,7 @@ lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__2___closed__2 lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUsed_match__1(lean_object*); lean_object* l_Lean_Elab_Term_withLevelNames___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Command_structExplicitBinder___elambda__1___closed__2; uint8_t l_USize_decLt(size_t, size_t); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___closed__2; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); @@ -221,7 +221,6 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___ lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___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_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__9___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__4; lean_object* l_List_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__1(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__3___closed__1; @@ -252,7 +251,6 @@ extern lean_object* l_Lean_Elab_Command_checkValidCtorModifier___rarg___lambda__ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure_match__1(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_toAttributeKind___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__4; lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getFVarLocalDecl_x21(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); @@ -297,7 +295,6 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelPa lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__8___lambda__1___boxed(lean_object**); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_addInstance(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__8; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue_match__2(lean_object*); extern lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___rarg___lambda__1___closed__3; lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -309,7 +306,6 @@ uint8_t l_Lean_Name_isAtomic(lean_object*); lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_elabStructure___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); -lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__6; lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__6(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_protectedExt; @@ -342,8 +338,8 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___r lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___spec__2(lean_object*); lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__7___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_pure___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__3(lean_object*); -lean_object* l_Lean_Elab_Command_elabStructure___closed__3; lean_object* l_Lean_Elab_sortDeclLevelParams(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Command_structSimpleBinder___elambda__1___closed__2; lean_object* l_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabSyntheticHole___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields_match__1___rarg(lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -378,7 +374,6 @@ lean_object* l___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkProjectionImp(lean_ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue_match__1(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__1; lean_object* l_Lean_mkAtomFrom(lean_object*, lean_object*); -lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__5; extern lean_object* l_Lean_Elab_elabAttr___rarg___lambda__3___closed__3; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamAux___boxed__const__1; lean_object* l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -409,7 +404,6 @@ lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___privat uint8_t l_Lean_BinderInfo_beq(uint8_t, uint8_t); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__3(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___at_Lean_Elab_Command_elabStructure___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___closed__2; lean_object* l_Lean_Syntax_getNumArgs(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__4___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_CollectLevelParams_instInhabitedState___closed__1; @@ -428,11 +422,11 @@ lean_object* l_Lean_Elab_Command_getCurrMacroScope(lean_object*, lean_object*, l lean_object* l_Lean_mkPrivateName(lean_object*, lean_object*); lean_object* l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_elabStructure___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Command_structure___elambda__1___closed__1; lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_elabStructure___spec__5___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5(lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabStructure___closed__2; lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__6(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -477,7 +471,7 @@ lean_object* l_Lean_Elab_Command_StructFieldInfo_isFromParent_match__1___rarg___ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUsed_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__7___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__4___closed__2; -lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__7; +extern lean_object* l_Lean_Parser_Command_structInstBinder___elambda__1___closed__2; lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_elabStructure___spec__5___lambda__1___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_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__2; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withUsed___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -516,7 +510,6 @@ lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_3622_(l lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__1; -lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___closed__3; lean_object* lean_expr_abstract(lean_object*, lean_object*); lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_pure___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -538,7 +531,6 @@ lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Command_elabStructure___spec_ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxConstructions___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidFieldModifier___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidFieldModifier___closed__1; -extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; uint8_t l_Lean_Elab_Modifiers_isPrivate(lean_object*); lean_object* l_Lean_Elab_toAttributeKind___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__4___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -582,6 +574,7 @@ extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____close lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamFVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_5449____closed__4; lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLetDeclImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Command_structImplicitBinder___elambda__1___closed__2; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__8(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__2___closed__1; extern lean_object* l_Lean_Elab_elabAttr___rarg___lambda__3___closed__2; @@ -608,6 +601,7 @@ extern lean_object* l_Lean_Elab_Command_instInhabitedCtorView___closed__1; extern lean_object* l_Lean_Elab_Command_checkValidCtorModifier___rarg___lambda__2___closed__3; extern lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_891____closed__1; extern lean_object* l_Lean_Elab_elabAttr___rarg___lambda__5___closed__3; +extern lean_object* l_Lean_Parser_Command_classTk___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_elabStructure___lambda__4(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectUniversesFromFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -5315,79 +5309,25 @@ static lean_object* _init_l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Str _start: { lean_object* x_1; -x_1 = lean_mk_string("structExplicitBinder"); +x_1 = lean_mk_string("unexpected kind of structure field"); return x_1; } } static lean_object* _init_l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("structImplicitBinder"); -return x_1; -} -} -static lean_object* _init_l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("structInstBinder"); -return x_1; -} -} -static lean_object* _init_l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__5; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("unexpected kind of structure field"); -return x_1; -} -} -static lean_object* _init_l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__8() { -_start: -{ lean_object* x_1; lean_object* x_2; -x_1 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__7; +x_1 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__9() { +static lean_object* _init_l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__8; +x_1 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; @@ -5399,17 +5339,17 @@ _start: lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_inc(x_4); x_13 = l_Lean_Syntax_getKind(x_4); -x_14 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__2; +x_14 = l_Lean_Parser_Command_structExplicitBinder___elambda__1___closed__2; x_15 = lean_name_eq(x_13, x_14); if (x_15 == 0) { lean_object* x_16; uint8_t x_17; -x_16 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__4; +x_16 = l_Lean_Parser_Command_structImplicitBinder___elambda__1___closed__2; x_17 = lean_name_eq(x_13, x_16); if (x_17 == 0) { lean_object* x_18; uint8_t x_19; -x_18 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__6; +x_18 = l_Lean_Parser_Command_structInstBinder___elambda__1___closed__2; x_19 = lean_name_eq(x_13, x_18); lean_dec(x_13); if (x_19 == 0) @@ -5417,7 +5357,7 @@ if (x_19 == 0) lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_dec(x_4); lean_dec(x_1); -x_20 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__9; +x_20 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__3; x_21 = l_Lean_throwError___at_Lean_Elab_Term_elabLetDeclAux___spec__1___rarg(x_20, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_10); x_22 = !lean_is_exclusive(x_21); @@ -5472,24 +5412,6 @@ return x_31; static lean_object* _init_l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___closed__1() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("structSimpleBinder"); -return x_1; -} -} -static lean_object* _init_l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___closed__3() { -_start: -{ lean_object* x_1; lean_object* x_2; x_1 = lean_unsigned_to_nat(7u); x_2 = lean_mk_empty_array_with_capacity(x_1); @@ -5507,7 +5429,7 @@ lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_obje x_15 = lean_array_uget(x_3, x_4); lean_inc(x_15); x_16 = l_Lean_Syntax_getKind(x_15); -x_17 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___closed__2; +x_17 = l_Lean_Parser_Command_structSimpleBinder___elambda__1___closed__2; x_18 = lean_name_eq(x_16, x_17); lean_dec(x_16); x_19 = lean_ctor_get(x_11, 0); @@ -5592,7 +5514,7 @@ x_49 = l_Lean_Syntax_getArg(x_15, x_48); x_50 = l_myMacro____x40_Init_Notation___hyg_49____closed__15; x_51 = l_Lean_mkAtomFrom(x_15, x_50); lean_dec(x_15); -x_52 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___closed__3; +x_52 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___closed__1; x_53 = lean_array_push(x_52, x_39); x_54 = lean_array_push(x_53, x_41); x_55 = lean_array_push(x_54, x_43); @@ -5600,7 +5522,7 @@ x_56 = lean_array_push(x_55, x_45); x_57 = lean_array_push(x_56, x_47); x_58 = lean_array_push(x_57, x_49); x_59 = lean_array_push(x_58, x_51); -x_60 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__2; +x_60 = l_Lean_Parser_Command_structExplicitBinder___elambda__1___closed__2; x_61 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_61, 0, x_60); lean_ctor_set(x_61, 1, x_59); @@ -5669,7 +5591,7 @@ lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_obje x_15 = lean_array_uget(x_3, x_4); lean_inc(x_15); x_16 = l_Lean_Syntax_getKind(x_15); -x_17 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___closed__2; +x_17 = l_Lean_Parser_Command_structSimpleBinder___elambda__1___closed__2; x_18 = lean_name_eq(x_16, x_17); lean_dec(x_16); x_19 = lean_ctor_get(x_11, 0); @@ -5754,7 +5676,7 @@ x_49 = l_Lean_Syntax_getArg(x_15, x_48); x_50 = l_myMacro____x40_Init_Notation___hyg_49____closed__15; x_51 = l_Lean_mkAtomFrom(x_15, x_50); lean_dec(x_15); -x_52 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___closed__3; +x_52 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___closed__1; x_53 = lean_array_push(x_52, x_39); x_54 = lean_array_push(x_53, x_41); x_55 = lean_array_push(x_54, x_43); @@ -5762,7 +5684,7 @@ x_56 = lean_array_push(x_55, x_45); x_57 = lean_array_push(x_56, x_47); x_58 = lean_array_push(x_57, x_49); x_59 = lean_array_push(x_58, x_51); -x_60 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__2; +x_60 = l_Lean_Parser_Command_structExplicitBinder___elambda__1___closed__2; x_61 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_61, 0, x_60); lean_ctor_set(x_61, 1, x_59); @@ -9262,7 +9184,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__10; x_2 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__11; -x_3 = lean_unsigned_to_nat(309u); +x_3 = lean_unsigned_to_nat(310u); x_4 = lean_unsigned_to_nat(37u); x_5 = l_Lean_Syntax_strLitToAtom___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -14764,22 +14686,14 @@ return x_4; static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__1() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("structure"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__2() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_891____closed__1; -x_2 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__1; +x_2 = l_Lean_Parser_Command_structure___elambda__1___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__3() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__2() { _start: { lean_object* x_1; @@ -14787,11 +14701,11 @@ x_1 = lean_mk_string("type: "); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__4() { +static lean_object* _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__3; +x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__2; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } @@ -15026,7 +14940,7 @@ lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; x_209 = lean_ctor_get(x_203, 1); lean_inc(x_209); lean_dec(x_203); -x_210 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__2; +x_210 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__1; x_211 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_210, x_9, x_10, x_11, x_12, x_13, x_14, x_209); x_212 = lean_ctor_get(x_211, 0); lean_inc(x_212); @@ -15971,7 +15885,7 @@ lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_inc(x_19); x_194 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_194, 0, x_19); -x_195 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__4; +x_195 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__3; x_196 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_196, 0, x_195); lean_ctor_set(x_196, 1, x_194); @@ -15979,7 +15893,7 @@ x_197 = l_Lean_KernelException_toMessageData___closed__15; x_198 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_198, 0, x_196); lean_ctor_set(x_198, 1, x_197); -x_199 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__2; +x_199 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__1; x_200 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_199, x_198, x_9, x_10, x_11, x_12, x_13, x_14, x_193); x_201 = lean_ctor_get(x_200, 1); lean_inc(x_201); @@ -18084,24 +17998,6 @@ return x_23; static lean_object* _init_l_Lean_Elab_Command_elabStructure___closed__1() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("classTk"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabStructure___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__3; -x_2 = l_Lean_Elab_Command_elabStructure___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabStructure___closed__3() { -_start: -{ uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = 0; x_2 = l_Lean_initFn____x40_Lean_Class___hyg_627____closed__2; @@ -18128,7 +18024,7 @@ lean_dec(x_6); x_8 = lean_unsigned_to_nat(0u); x_9 = l_Lean_Syntax_getArg(x_2, x_8); x_10 = l_Lean_Syntax_getKind(x_9); -x_11 = l_Lean_Elab_Command_elabStructure___closed__2; +x_11 = l_Lean_Parser_Command_classTk___elambda__1___closed__2; x_12 = lean_name_eq(x_10, x_11); lean_dec(x_10); x_13 = lean_unsigned_to_nat(1u); @@ -18151,7 +18047,7 @@ goto block_40; else { lean_object* x_41; lean_object* x_42; -x_41 = l_Lean_Elab_Command_elabStructure___closed__3; +x_41 = l_Lean_Elab_Command_elabStructure___closed__1; x_42 = l_Lean_Elab_Modifiers_addAttribute(x_1, x_41); x_24 = x_42; goto block_40; @@ -18515,12 +18411,13 @@ lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_3622_(l _start: { lean_object* x_2; lean_object* x_3; -x_2 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__2; +x_2 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__1; x_3 = l_Lean_registerTraceClass(x_2, x_1); return x_3; } } lean_object* initialize_Init(lean_object*); +lean_object* initialize_Lean_Parser_Command(lean_object*); lean_object* initialize_Lean_Meta_Closure(lean_object*); lean_object* initialize_Lean_Elab_Command(lean_object*); lean_object* initialize_Lean_Elab_DeclModifiers(lean_object*); @@ -18534,6 +18431,9 @@ _G_initialized = true; res = initialize_Init(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Parser_Command(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); res = initialize_Lean_Meta_Closure(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -18628,24 +18528,8 @@ l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Comman lean_mark_persistent(l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__2); l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__3 = _init_l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__3(); lean_mark_persistent(l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__3); -l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__4 = _init_l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__4(); -lean_mark_persistent(l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__4); -l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__5 = _init_l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__5(); -lean_mark_persistent(l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__5); -l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__6 = _init_l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__6(); -lean_mark_persistent(l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__6); -l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__7 = _init_l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__7(); -lean_mark_persistent(l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__7); -l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__8 = _init_l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__8(); -lean_mark_persistent(l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__8); -l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__9 = _init_l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__9(); -lean_mark_persistent(l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___lambda__4___closed__9); l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___closed__1 = _init_l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___closed__1(); lean_mark_persistent(l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___closed__1); -l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___closed__2 = _init_l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___closed__2(); -lean_mark_persistent(l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___closed__2); -l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___closed__3 = _init_l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___closed__3(); -lean_mark_persistent(l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__9___closed__3); l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___closed__1(); l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___closed__2 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___closed__2(); l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___closed__3 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___closed__3(); @@ -18723,8 +18607,6 @@ l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda_ lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__2); l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__3 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__3(); lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__3); -l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__4 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___closed__4); l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___boxed__const__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___boxed__const__1(); lean_mark_persistent(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___boxed__const__1); l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___closed__1 = _init_l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___closed__1(); @@ -18737,10 +18619,6 @@ l_Lean_Elab_Command_elabStructure___lambda__4___closed__1 = _init_l_Lean_Elab_Co lean_mark_persistent(l_Lean_Elab_Command_elabStructure___lambda__4___closed__1); l_Lean_Elab_Command_elabStructure___closed__1 = _init_l_Lean_Elab_Command_elabStructure___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_elabStructure___closed__1); -l_Lean_Elab_Command_elabStructure___closed__2 = _init_l_Lean_Elab_Command_elabStructure___closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_elabStructure___closed__2); -l_Lean_Elab_Command_elabStructure___closed__3 = _init_l_Lean_Elab_Command_elabStructure___closed__3(); -lean_mark_persistent(l_Lean_Elab_Command_elabStructure___closed__3); res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_3622_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); diff --git a/stage0/stdlib/Lean/Elab/Syntax.c b/stage0/stdlib/Lean/Elab/Syntax.c index 8bb4965b06..d5f00c530a 100644 --- a/stage0/stdlib/Lean/Elab/Syntax.c +++ b/stage0/stdlib/Lean/Elab/Syntax.c @@ -18,7 +18,6 @@ uint8_t l_Lean_Syntax_isQuot(lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMixfix_match__20(lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_10790____closed__11; -lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_17772____closed__1; lean_object* l_Lean_Elab_Command_expandMixfix_match__44(lean_object*); lean_object* l_Array_mapIdxM_map___at_Lean_Elab_Term_toParserDescrAux___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMixfix_match__28___rarg(lean_object*, lean_object*, lean_object*); @@ -145,7 +144,6 @@ lean_object* l___regBuiltin_Lean_Elab_Command_elabMacroRules(lean_object*); lean_object* l_Lean_Elab_Command_expandElab___closed__32; lean_object* l_Lean_Elab_Command_expandElab___closed__10; extern lean_object* l_Lean_identKind___closed__2; -extern lean_object* l_Lean_Parser_Term_match___elambda__1___closed__1; lean_object* l_Lean_Elab_Term_toParserDescrAux_match__1(lean_object*); lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__13; extern lean_object* l_Lean_Elab_Tactic_mkTacticAttribute___closed__6; @@ -181,6 +179,7 @@ extern lean_object* l_Lean_formatDataValue___closed__1; extern lean_object* l_Lean_instInhabitedParserDescr___closed__1; extern lean_object* l_Lean_PrettyPrinter_runForNodeKind___rarg___closed__4; lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__30; +extern lean_object* l___regBuiltin_Lean_Elab_Term_elabQuotedName___closed__2; lean_object* l_Lean_Elab_Command_expandMixfix___lambda__1___closed__31; uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandElab___closed__35; @@ -197,7 +196,6 @@ lean_object* l___private_Init_Meta_0__Array_filterSepElemsMAux___at_Lean_Elab_Co lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescrAux_match__6(lean_object*); lean_object* l_Lean_Elab_Command_elabSyntax___lambda__3___closed__6; -extern lean_object* l_Lean_Parser_Term_scoped___elambda__1___closed__1; lean_object* l_Lean_Elab_Command_expandMixfix_match__46___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__29; @@ -307,7 +305,6 @@ lean_object* l_Lean_Elab_Command_mkNameFromParserSyntax_visit_match__2___rarg(le lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___spec__2(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__37; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabMacroRulesAux___spec__3___rarg(lean_object*); -extern lean_object* l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; lean_object* l_Lean_Elab_Command_expandMixfix_match__39___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux_match__2(lean_object*); lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___closed__13; @@ -347,7 +344,6 @@ lean_object* l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(lean_object*, lean_object* lean_object* l_Lean_Elab_Command_mkSimpleDelab_go___closed__23; lean_object* l_Lean_Elab_Term_toParserDescrAux___lambda__3___closed__1; lean_object* l_Lean_Elab_Term_toParserDescrAux___lambda__1___closed__3; -lean_object* l_Lean_Elab_Command_expandMacroHeadIntoPattern(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMixfix___lambda__1___closed__13; extern lean_object* l_Lean_Parser_Command_postfix___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_expandMixfix_match__10(lean_object*); @@ -403,7 +399,6 @@ lean_object* l_Lean_Elab_Command_mkSimpleDelab_go___closed__2; lean_object* l_Lean_Elab_Command_expandMixfix_match__16(lean_object*); lean_object* l_Lean_Elab_Command_expandNotationItemIntoPattern(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_mkSimpleDelab___boxed(lean_object*); -extern lean_object* l_Lean_Parser_Term_quotedName___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_elabSyntax___lambda__3___closed__1; lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__33; lean_object* l_Lean_Elab_Term_toParserDescrAux___lambda__1___closed__2; @@ -415,7 +410,6 @@ extern lean_object* l_Lean_instToStringAttributeKind___closed__2; extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__7; lean_object* l_Lean_Elab_Command_expandMixfix_match__34(lean_object*); lean_object* l_Lean_Elab_Command_expandMixfix_match__8(lean_object*); -lean_object* l_Lean_Syntax_getHeadInfo(lean_object*); lean_object* l_Lean_Elab_Command_expandMixfix_match__52(lean_object*); lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__38; lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__21; @@ -431,7 +425,7 @@ lean_object* l_Lean_Elab_Term_toParserDescrAux_match__5___rarg(lean_object*, lea lean_object* l_String_capitalize(lean_object*); lean_object* l___private_Lean_Elab_Util_0__Lean_Elab_expandMacro_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_49____closed__7; -lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_17772_(lean_object*); +lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_17724_(lean_object*); lean_object* l_Lean_Elab_Command_elabSyntax_match__2___rarg(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMixfix___lambda__1___closed__4; extern lean_object* l_Lean_Parser_Command_parserKindPrio___elambda__1___closed__2; @@ -476,7 +470,6 @@ lean_object* l_Lean_Elab_Term_toParserDescrAux___lambda__3___closed__3; lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___closed__14; extern lean_object* l_Lean_Parser_Tactic_quot___elambda__1___closed__1; lean_object* l_Lean_Elab_Term_toParserDescrAux___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Parser_Term_matchDiscr___elambda__1___closed__1; lean_object* l_Lean_Elab_Command_mkSimpleDelab___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_repr(lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_toParserDescrAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -616,7 +609,6 @@ lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__11; extern lean_object* l_Lean_KernelException_toMessageData___closed__3; size_t lean_usize_of_nat(lean_object*); lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__3; -lean_object* l_Lean_Elab_Command_expandMacroHeadIntoSyntaxItem___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabSyntax___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Meta_0__Array_mapSepElemsMAux___at_Lean_Elab_Command_elabMacroRulesAux___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandOptPrio(lean_object*); @@ -627,6 +619,7 @@ lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___closed__6; lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__46; lean_object* l_Lean_Elab_Command_expandElab___closed__46; +extern lean_object* l_Lean_Elab_Term_expandFunBinders_loop___closed__13; extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__1; uint8_t l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandElab___closed__25; @@ -762,6 +755,7 @@ lean_object* l_Lean_Elab_Command_expandMixfix___lambda__1___closed__25; lean_object* l_Lean_Elab_Command_expandElab___closed__21; extern lean_object* l_myMacro____x40_Init_Notation___hyg_376____closed__1; lean_object* l_Lean_Elab_Command_expandMixfix_match__49(lean_object*); +extern lean_object* l_Lean_Elab_toAttributeKind___rarg___closed__1; lean_object* l_Lean_Elab_Command_expandElab___closed__38; lean_object* l_Array_appendCore___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___closed__2; @@ -826,6 +820,7 @@ extern lean_object* l_Lean_Parser_Command_parserKind___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_expandElab___closed__51; lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__8; lean_object* l_Lean_Elab_Term_toParserDescrAux_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_17724____closed__1; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__21; extern lean_object* l_Lean_mkOptionalNode___closed__1; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_toParserDescrAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -858,7 +853,6 @@ lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___boxed uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__28; lean_object* l_Lean_Elab_Command_elabSyntax___lambda__3___closed__30; -extern lean_object* l_Lean_Parser_Term_matchAlt___closed__1; lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabSyntax___lambda__3___closed__18; lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Command_elabSyntax___spec__4(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); @@ -946,7 +940,6 @@ lean_object* l_Lean_Elab_Command_expandMixfix___lambda__1___closed__20; lean_object* l_Lean_Elab_Term_toParserDescrAux___lambda__4___closed__4; lean_object* l_Lean_Elab_Command_elabSyntax_match__1(lean_object*); lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux_match__6(lean_object*); -lean_object* l_Lean_Elab_Command_expandMacroHeadIntoSyntaxItem(lean_object*, lean_object*, lean_object*); uint8_t l_List_isEmpty___rarg(lean_object*); lean_object* l_Lean_Elab_Command_expandMixfix_match__38___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__27; @@ -965,6 +958,7 @@ lean_object* l_Lean_Elab_Command_expandMixfix_match__22(lean_object*); lean_object* l_Lean_Elab_Command_mkNameFromParserSyntax_appendCatName_match__1(lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___spec__1(lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescrAux_match__5(lean_object*); +extern lean_object* l_Lean_Elab_Term_expandFunBinders_loop___closed__8; lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__32; lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix___closed__2; lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__10; @@ -977,7 +971,6 @@ extern lean_object* l_Lean_Elab_Command_mkCommandElabAttributeUnsafe___closed__6 lean_object* l_Lean_Elab_Command_expandMixfix___lambda__1___closed__16; lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix___boxed(lean_object*); lean_object* l_Lean_Elab_Command_elabSyntax___lambda__3___closed__7; -lean_object* l_Lean_Elab_Command_expandMacroHeadIntoPattern___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_inferMacroRulesAltKind___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_12176____closed__17; @@ -1011,6 +1004,7 @@ lean_object* l_Lean_Elab_Command_expandMixfix_match__37(lean_object*); lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___lambda__3___closed__1; lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__8; +extern lean_object* l_Lean_Elab_Term_expandFunBinders_loop___closed__4; extern lean_object* l_myMacro____x40_Init_Notation___hyg_49____closed__1; lean_object* l_Lean_Elab_Command_mkSimpleDelab_go___closed__4; extern lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_891____closed__1; @@ -1059,6 +1053,7 @@ lean_object* l_Lean_Elab_Command_elabElab___lambda__1___boxed(lean_object*, lean uint8_t lean_string_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Syntax_mkLit(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__8; +extern lean_object* l_Lean_Elab_Term_expandFunBinders_loop___closed__1; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandNotationItemIntoSyntaxItem___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapSepElemsM___at_Lean_Elab_Command_elabMacroRulesAux___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1298,7 +1293,7 @@ static lean_object* _init_l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_S _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_quotedName___elambda__1___closed__2; +x_1 = l___regBuiltin_Lean_Elab_Term_elabQuotedName___closed__2; x_2 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__13; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -12782,7 +12777,7 @@ lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; x_8 = l_Lean_Syntax_getArg(x_6, x_5); lean_dec(x_6); x_9 = l_Lean_Syntax_getKind(x_8); -x_10 = l_Lean_Parser_Term_scoped___elambda__1___closed__1; +x_10 = l_Lean_Elab_toAttributeKind___rarg___closed__1; x_11 = lean_name_eq(x_9, x_10); lean_dec(x_9); if (x_11 == 0) @@ -13506,7 +13501,7 @@ static lean_object* _init_l_Lean_Elab_Command_elabSyntax___lambda__3___closed__1 _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_scoped___elambda__1___closed__1; +x_1 = l_Lean_Elab_toAttributeKind___rarg___closed__1; x_2 = l_Lean_Elab_Command_elabSyntax___lambda__3___closed__16; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -16467,7 +16462,7 @@ lean_ctor_set(x_95, 0, x_94); lean_ctor_set(x_95, 1, x_93); x_96 = l_Lean_expandExplicitBindersAux_loop___closed__4; x_97 = lean_array_push(x_96, x_95); -x_98 = l_Lean_Parser_Term_matchAlt___closed__1; +x_98 = l_Lean_Elab_Term_expandFunBinders_loop___closed__13; x_99 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_99, 0, x_98); lean_ctor_set(x_99, 1, x_97); @@ -16477,7 +16472,7 @@ lean_ctor_set(x_101, 0, x_27); lean_ctor_set(x_101, 1, x_100); x_102 = l_Lean_Elab_Term_expandFunBinders_loop___closed__12; x_103 = lean_array_push(x_102, x_101); -x_104 = l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; +x_104 = l_Lean_Elab_Term_expandFunBinders_loop___closed__8; x_105 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_105, 0, x_104); lean_ctor_set(x_105, 1, x_103); @@ -16650,7 +16645,7 @@ lean_ctor_set(x_202, 0, x_201); lean_ctor_set(x_202, 1, x_200); x_203 = l_Lean_expandExplicitBindersAux_loop___closed__4; x_204 = lean_array_push(x_203, x_202); -x_205 = l_Lean_Parser_Term_matchAlt___closed__1; +x_205 = l_Lean_Elab_Term_expandFunBinders_loop___closed__13; x_206 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_206, 0, x_205); lean_ctor_set(x_206, 1, x_204); @@ -16660,7 +16655,7 @@ lean_ctor_set(x_208, 0, x_134); lean_ctor_set(x_208, 1, x_207); x_209 = l_Lean_Elab_Term_expandFunBinders_loop___closed__12; x_210 = lean_array_push(x_209, x_208); -x_211 = l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; +x_211 = l_Lean_Elab_Term_expandFunBinders_loop___closed__8; x_212 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_212, 0, x_211); lean_ctor_set(x_212, 1, x_210); @@ -17316,7 +17311,7 @@ lean_ctor_set(x_35, 0, x_34); lean_ctor_set(x_35, 1, x_33); x_36 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__8; x_37 = lean_array_push(x_36, x_35); -x_38 = l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; +x_38 = l_Lean_Elab_Term_expandFunBinders_loop___closed__8; x_39 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_39, 0, x_38); lean_ctor_set(x_39, 1, x_37); @@ -17349,7 +17344,7 @@ lean_ctor_set(x_51, 0, x_50); lean_ctor_set(x_51, 1, x_49); x_52 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__8; x_53 = lean_array_push(x_52, x_51); -x_54 = l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; +x_54 = l_Lean_Elab_Term_expandFunBinders_loop___closed__8; x_55 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_55, 0, x_54); lean_ctor_set(x_55, 1, x_53); @@ -17416,7 +17411,7 @@ lean_ctor_set(x_75, 0, x_74); lean_ctor_set(x_75, 1, x_73); x_76 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1127____closed__8; x_77 = lean_array_push(x_76, x_75); -x_78 = l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; +x_78 = l_Lean_Elab_Term_expandFunBinders_loop___closed__8; x_79 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_79, 0, x_78); lean_ctor_set(x_79, 1, x_77); @@ -17674,7 +17669,7 @@ lean_dec(x_9); x_61 = lean_unsigned_to_nat(2u); x_62 = l_Lean_Syntax_getArg(x_1, x_61); lean_dec(x_1); -x_63 = l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; +x_63 = l_Lean_Elab_Term_expandFunBinders_loop___closed__8; lean_inc(x_62); x_64 = l_Lean_Syntax_isOfKind(x_62, x_63); if (x_64 == 0) @@ -17796,7 +17791,7 @@ lean_dec(x_9); x_20 = lean_unsigned_to_nat(2u); x_21 = l_Lean_Syntax_getArg(x_1, x_20); lean_dec(x_1); -x_22 = l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; +x_22 = l_Lean_Elab_Term_expandFunBinders_loop___closed__8; lean_inc(x_21); x_23 = l_Lean_Syntax_isOfKind(x_21, x_22); if (x_23 == 0) @@ -23728,7 +23723,7 @@ x_120 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_120, 0, x_111); lean_ctor_set(x_120, 1, x_119); x_121 = lean_array_push(x_117, x_120); -x_122 = l_Lean_Parser_Term_matchAlt___closed__1; +x_122 = l_Lean_Elab_Term_expandFunBinders_loop___closed__13; x_123 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_123, 0, x_122); lean_ctor_set(x_123, 1, x_121); @@ -23761,7 +23756,7 @@ lean_ctor_set(x_140, 0, x_36); lean_ctor_set(x_140, 1, x_139); x_141 = l_Lean_Elab_Term_expandFunBinders_loop___closed__12; x_142 = lean_array_push(x_141, x_140); -x_143 = l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; +x_143 = l_Lean_Elab_Term_expandFunBinders_loop___closed__8; x_144 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_144, 0, x_143); lean_ctor_set(x_144, 1, x_142); @@ -23918,7 +23913,7 @@ x_234 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_234, 0, x_225); lean_ctor_set(x_234, 1, x_233); x_235 = lean_array_push(x_231, x_234); -x_236 = l_Lean_Parser_Term_matchAlt___closed__1; +x_236 = l_Lean_Elab_Term_expandFunBinders_loop___closed__13; x_237 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_237, 0, x_236); lean_ctor_set(x_237, 1, x_235); @@ -23951,7 +23946,7 @@ lean_ctor_set(x_254, 0, x_36); lean_ctor_set(x_254, 1, x_253); x_255 = l_Lean_Elab_Term_expandFunBinders_loop___closed__12; x_256 = lean_array_push(x_255, x_254); -x_257 = l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; +x_257 = l_Lean_Elab_Term_expandFunBinders_loop___closed__8; x_258 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_258, 0, x_257); lean_ctor_set(x_258, 1, x_256); @@ -24159,7 +24154,7 @@ x_368 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_368, 0, x_359); lean_ctor_set(x_368, 1, x_367); x_369 = lean_array_push(x_365, x_368); -x_370 = l_Lean_Parser_Term_matchAlt___closed__1; +x_370 = l_Lean_Elab_Term_expandFunBinders_loop___closed__13; x_371 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_371, 0, x_370); lean_ctor_set(x_371, 1, x_369); @@ -24192,7 +24187,7 @@ lean_ctor_set(x_388, 0, x_284); lean_ctor_set(x_388, 1, x_387); x_389 = l_Lean_Elab_Term_expandFunBinders_loop___closed__12; x_390 = lean_array_push(x_389, x_388); -x_391 = l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; +x_391 = l_Lean_Elab_Term_expandFunBinders_loop___closed__8; x_392 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_392, 0, x_391); lean_ctor_set(x_392, 1, x_390); @@ -24349,7 +24344,7 @@ x_482 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_482, 0, x_473); lean_ctor_set(x_482, 1, x_481); x_483 = lean_array_push(x_479, x_482); -x_484 = l_Lean_Parser_Term_matchAlt___closed__1; +x_484 = l_Lean_Elab_Term_expandFunBinders_loop___closed__13; x_485 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_485, 0, x_484); lean_ctor_set(x_485, 1, x_483); @@ -24382,7 +24377,7 @@ lean_ctor_set(x_502, 0, x_284); lean_ctor_set(x_502, 1, x_501); x_503 = l_Lean_Elab_Term_expandFunBinders_loop___closed__12; x_504 = lean_array_push(x_503, x_502); -x_505 = l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; +x_505 = l_Lean_Elab_Term_expandFunBinders_loop___closed__8; x_506 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_506, 0, x_505); lean_ctor_set(x_506, 1, x_504); @@ -24592,7 +24587,7 @@ x_618 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_618, 0, x_609); lean_ctor_set(x_618, 1, x_617); x_619 = lean_array_push(x_615, x_618); -x_620 = l_Lean_Parser_Term_matchAlt___closed__1; +x_620 = l_Lean_Elab_Term_expandFunBinders_loop___closed__13; x_621 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_621, 0, x_620); lean_ctor_set(x_621, 1, x_619); @@ -24625,7 +24620,7 @@ lean_ctor_set(x_638, 0, x_534); lean_ctor_set(x_638, 1, x_637); x_639 = l_Lean_Elab_Term_expandFunBinders_loop___closed__12; x_640 = lean_array_push(x_639, x_638); -x_641 = l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; +x_641 = l_Lean_Elab_Term_expandFunBinders_loop___closed__8; x_642 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_642, 0, x_641); lean_ctor_set(x_642, 1, x_640); @@ -24782,7 +24777,7 @@ x_732 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_732, 0, x_723); lean_ctor_set(x_732, 1, x_731); x_733 = lean_array_push(x_729, x_732); -x_734 = l_Lean_Parser_Term_matchAlt___closed__1; +x_734 = l_Lean_Elab_Term_expandFunBinders_loop___closed__13; x_735 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_735, 0, x_734); lean_ctor_set(x_735, 1, x_733); @@ -24815,7 +24810,7 @@ lean_ctor_set(x_752, 0, x_534); lean_ctor_set(x_752, 1, x_751); x_753 = l_Lean_Elab_Term_expandFunBinders_loop___closed__12; x_754 = lean_array_push(x_753, x_752); -x_755 = l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; +x_755 = l_Lean_Elab_Term_expandFunBinders_loop___closed__8; x_756 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_756, 0, x_755); lean_ctor_set(x_756, 1, x_754); @@ -25052,7 +25047,7 @@ x_873 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_873, 0, x_864); lean_ctor_set(x_873, 1, x_872); x_874 = lean_array_push(x_870, x_873); -x_875 = l_Lean_Parser_Term_matchAlt___closed__1; +x_875 = l_Lean_Elab_Term_expandFunBinders_loop___closed__13; x_876 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_876, 0, x_875); lean_ctor_set(x_876, 1, x_874); @@ -25085,7 +25080,7 @@ lean_ctor_set(x_893, 0, x_788); lean_ctor_set(x_893, 1, x_892); x_894 = l_Lean_Elab_Term_expandFunBinders_loop___closed__12; x_895 = lean_array_push(x_894, x_893); -x_896 = l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; +x_896 = l_Lean_Elab_Term_expandFunBinders_loop___closed__8; x_897 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_897, 0, x_896); lean_ctor_set(x_897, 1, x_895); @@ -25304,7 +25299,7 @@ x_1009 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1009, 0, x_1000); lean_ctor_set(x_1009, 1, x_1008); x_1010 = lean_array_push(x_1006, x_1009); -x_1011 = l_Lean_Parser_Term_matchAlt___closed__1; +x_1011 = l_Lean_Elab_Term_expandFunBinders_loop___closed__13; x_1012 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1012, 0, x_1011); lean_ctor_set(x_1012, 1, x_1010); @@ -25337,7 +25332,7 @@ lean_ctor_set(x_1029, 0, x_924); lean_ctor_set(x_1029, 1, x_1028); x_1030 = l_Lean_Elab_Term_expandFunBinders_loop___closed__12; x_1031 = lean_array_push(x_1030, x_1029); -x_1032 = l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; +x_1032 = l_Lean_Elab_Term_expandFunBinders_loop___closed__8; x_1033 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1033, 0, x_1032); lean_ctor_set(x_1033, 1, x_1031); @@ -25558,7 +25553,7 @@ x_1147 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1147, 0, x_1138); lean_ctor_set(x_1147, 1, x_1146); x_1148 = lean_array_push(x_1144, x_1147); -x_1149 = l_Lean_Parser_Term_matchAlt___closed__1; +x_1149 = l_Lean_Elab_Term_expandFunBinders_loop___closed__13; x_1150 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1150, 0, x_1149); lean_ctor_set(x_1150, 1, x_1148); @@ -25591,7 +25586,7 @@ lean_ctor_set(x_1167, 0, x_1062); lean_ctor_set(x_1167, 1, x_1166); x_1168 = l_Lean_Elab_Term_expandFunBinders_loop___closed__12; x_1169 = lean_array_push(x_1168, x_1167); -x_1170 = l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; +x_1170 = l_Lean_Elab_Term_expandFunBinders_loop___closed__8; x_1171 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1171, 0, x_1170); lean_ctor_set(x_1171, 1, x_1169); @@ -25952,7 +25947,7 @@ x_1310 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1310, 0, x_1301); lean_ctor_set(x_1310, 1, x_1309); x_1311 = lean_array_push(x_1307, x_1310); -x_1312 = l_Lean_Parser_Term_matchAlt___closed__1; +x_1312 = l_Lean_Elab_Term_expandFunBinders_loop___closed__13; x_1313 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1313, 0, x_1312); lean_ctor_set(x_1313, 1, x_1311); @@ -25985,7 +25980,7 @@ lean_ctor_set(x_1330, 0, x_1225); lean_ctor_set(x_1330, 1, x_1329); x_1331 = l_Lean_Elab_Term_expandFunBinders_loop___closed__12; x_1332 = lean_array_push(x_1331, x_1330); -x_1333 = l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; +x_1333 = l_Lean_Elab_Term_expandFunBinders_loop___closed__8; x_1334 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1334, 0, x_1333); lean_ctor_set(x_1334, 1, x_1332); @@ -26209,7 +26204,7 @@ x_1447 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1447, 0, x_1438); lean_ctor_set(x_1447, 1, x_1446); x_1448 = lean_array_push(x_1444, x_1447); -x_1449 = l_Lean_Parser_Term_matchAlt___closed__1; +x_1449 = l_Lean_Elab_Term_expandFunBinders_loop___closed__13; x_1450 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1450, 0, x_1449); lean_ctor_set(x_1450, 1, x_1448); @@ -26242,7 +26237,7 @@ lean_ctor_set(x_1467, 0, x_1362); lean_ctor_set(x_1467, 1, x_1466); x_1468 = l_Lean_Elab_Term_expandFunBinders_loop___closed__12; x_1469 = lean_array_push(x_1468, x_1467); -x_1470 = l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; +x_1470 = l_Lean_Elab_Term_expandFunBinders_loop___closed__8; x_1471 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1471, 0, x_1470); lean_ctor_set(x_1471, 1, x_1469); @@ -26468,7 +26463,7 @@ x_1586 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1586, 0, x_1577); lean_ctor_set(x_1586, 1, x_1585); x_1587 = lean_array_push(x_1583, x_1586); -x_1588 = l_Lean_Parser_Term_matchAlt___closed__1; +x_1588 = l_Lean_Elab_Term_expandFunBinders_loop___closed__13; x_1589 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1589, 0, x_1588); lean_ctor_set(x_1589, 1, x_1587); @@ -26501,7 +26496,7 @@ lean_ctor_set(x_1606, 0, x_1501); lean_ctor_set(x_1606, 1, x_1605); x_1607 = l_Lean_Elab_Term_expandFunBinders_loop___closed__12; x_1608 = lean_array_push(x_1607, x_1606); -x_1609 = l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; +x_1609 = l_Lean_Elab_Term_expandFunBinders_loop___closed__8; x_1610 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1610, 0, x_1609); lean_ctor_set(x_1610, 1, x_1608); @@ -27229,7 +27224,7 @@ x_35 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_35, 0, x_26); lean_ctor_set(x_35, 1, x_34); x_36 = lean_array_push(x_32, x_35); -x_37 = l_Lean_Parser_Term_matchAlt___closed__1; +x_37 = l_Lean_Elab_Term_expandFunBinders_loop___closed__13; x_38 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_38, 0, x_37); lean_ctor_set(x_38, 1, x_36); @@ -27238,7 +27233,7 @@ x_40 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_40, 0, x_14); lean_ctor_set(x_40, 1, x_39); x_41 = lean_array_push(x_20, x_40); -x_42 = l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; +x_42 = l_Lean_Elab_Term_expandFunBinders_loop___closed__8; x_43 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_43, 0, x_42); lean_ctor_set(x_43, 1, x_41); @@ -28558,73 +28553,6 @@ lean_dec(x_2); return x_4; } } -lean_object* l_Lean_Elab_Command_expandMacroHeadIntoSyntaxItem(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = l_Lean_Syntax_isIdent(x_1); -if (x_4 == 0) -{ -lean_object* x_5; -x_5 = l_Lean_Elab_Command_expandMacroArgIntoSyntaxItem(x_1, x_2, x_3); -return x_5; -} -else -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_6 = l_Lean_Syntax_getHeadInfo(x_1); -x_7 = l_Lean_Syntax_getId(x_1); -lean_dec(x_1); -x_8 = l_Lean_Name_toString___closed__1; -x_9 = l_Lean_Name_toStringWithSep(x_8, x_7); -if (lean_obj_tag(x_6) == 0) -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_10 = l_Lean_instInhabitedSourceInfo___closed__1; -x_11 = l_Lean_Syntax_mkStrLit(x_9, x_10); -lean_dec(x_9); -x_12 = l_Lean_mkOptionalNode___closed__2; -x_13 = lean_array_push(x_12, x_11); -x_14 = l_myMacro____x40_Init_Notation___hyg_521____closed__12; -x_15 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_13); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_3); -return x_16; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_17 = lean_ctor_get(x_6, 0); -lean_inc(x_17); -lean_dec(x_6); -x_18 = l_Lean_Syntax_mkStrLit(x_9, x_17); -lean_dec(x_9); -x_19 = l_Lean_mkOptionalNode___closed__2; -x_20 = lean_array_push(x_19, x_18); -x_21 = l_myMacro____x40_Init_Notation___hyg_521____closed__12; -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_20); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_3); -return x_23; -} -} -} -} -lean_object* l_Lean_Elab_Command_expandMacroHeadIntoSyntaxItem___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lean_Elab_Command_expandMacroHeadIntoSyntaxItem(x_1, x_2, x_3); -lean_dec(x_2); -return x_4; -} -} static lean_object* _init_l_Lean_Elab_Command_expandMacroArgIntoPattern___closed__1() { _start: { @@ -28699,41 +28627,6 @@ lean_dec(x_2); return x_4; } } -lean_object* l_Lean_Elab_Command_expandMacroHeadIntoPattern(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = l_Lean_Syntax_isIdent(x_1); -if (x_4 == 0) -{ -lean_object* x_5; -x_5 = l_Lean_Elab_Command_expandMacroArgIntoPattern(x_1, x_2, x_3); -return x_5; -} -else -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_6 = l_Lean_Syntax_getId(x_1); -x_7 = l_Lean_Name_toString___closed__1; -x_8 = l_Lean_Name_toStringWithSep(x_7, x_6); -x_9 = l_Lean_mkAtomFrom(x_1, x_8); -lean_dec(x_1); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_3); -return x_10; -} -} -} -lean_object* l_Lean_Elab_Command_expandMacroHeadIntoPattern___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lean_Elab_Command_expandMacroHeadIntoPattern(x_1, x_2, x_3); -lean_dec(x_2); -return x_4; -} -} lean_object* l_Lean_Elab_Command_expandOptPrio(lean_object* x_1) { _start: { @@ -29031,7 +28924,7 @@ lean_ctor_set(x_500, 3, x_488); lean_ctor_set(x_500, 4, x_492); lean_ctor_set(x_500, 5, x_483); lean_inc(x_13); -x_501 = l_Lean_Elab_Command_expandMacroHeadIntoSyntaxItem(x_13, x_500, x_496); +x_501 = l_Lean_Elab_Command_expandMacroArgIntoSyntaxItem(x_13, x_500, x_496); lean_dec(x_500); if (lean_obj_tag(x_501) == 0) { @@ -29438,7 +29331,7 @@ lean_ctor_set(x_387, 2, x_373); lean_ctor_set(x_387, 3, x_375); lean_ctor_set(x_387, 4, x_379); lean_ctor_set(x_387, 5, x_370); -x_388 = l_Lean_Elab_Command_expandMacroHeadIntoPattern(x_13, x_387, x_383); +x_388 = l_Lean_Elab_Command_expandMacroArgIntoPattern(x_13, x_387, x_383); lean_dec(x_387); if (lean_obj_tag(x_388) == 0) { @@ -29831,7 +29724,7 @@ x_95 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_95, 0, x_86); lean_ctor_set(x_95, 1, x_94); x_96 = lean_array_push(x_92, x_95); -x_97 = l_Lean_Parser_Term_matchAlt___closed__1; +x_97 = l_Lean_Elab_Term_expandFunBinders_loop___closed__13; x_98 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_98, 0, x_97); lean_ctor_set(x_98, 1, x_96); @@ -29841,7 +29734,7 @@ lean_ctor_set(x_100, 0, x_52); lean_ctor_set(x_100, 1, x_99); x_101 = l_Lean_Elab_Term_expandFunBinders_loop___closed__12; x_102 = lean_array_push(x_101, x_100); -x_103 = l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; +x_103 = l_Lean_Elab_Term_expandFunBinders_loop___closed__8; x_104 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_104, 0, x_103); lean_ctor_set(x_104, 1, x_102); @@ -29929,7 +29822,7 @@ x_157 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_157, 0, x_148); lean_ctor_set(x_157, 1, x_156); x_158 = lean_array_push(x_154, x_157); -x_159 = l_Lean_Parser_Term_matchAlt___closed__1; +x_159 = l_Lean_Elab_Term_expandFunBinders_loop___closed__13; x_160 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_160, 0, x_159); lean_ctor_set(x_160, 1, x_158); @@ -29939,7 +29832,7 @@ lean_ctor_set(x_162, 0, x_114); lean_ctor_set(x_162, 1, x_161); x_163 = l_Lean_Elab_Term_expandFunBinders_loop___closed__12; x_164 = lean_array_push(x_163, x_162); -x_165 = l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; +x_165 = l_Lean_Elab_Term_expandFunBinders_loop___closed__8; x_166 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_166, 0, x_165); lean_ctor_set(x_166, 1, x_164); @@ -30036,7 +29929,7 @@ x_221 = lean_array_push(x_181, x_220); x_222 = l_myMacro____x40_Init_Notation___hyg_10790____closed__17; x_223 = lean_array_push(x_221, x_222); x_224 = lean_array_push(x_223, x_175); -x_225 = l_Lean_Parser_Term_matchAlt___closed__1; +x_225 = l_Lean_Elab_Term_expandFunBinders_loop___closed__13; x_226 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_226, 0, x_225); lean_ctor_set(x_226, 1, x_224); @@ -30046,7 +29939,7 @@ lean_ctor_set(x_228, 0, x_183); lean_ctor_set(x_228, 1, x_227); x_229 = l_Lean_Elab_Term_expandFunBinders_loop___closed__12; x_230 = lean_array_push(x_229, x_228); -x_231 = l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; +x_231 = l_Lean_Elab_Term_expandFunBinders_loop___closed__8; x_232 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_232, 0, x_231); lean_ctor_set(x_232, 1, x_230); @@ -30129,7 +30022,7 @@ x_280 = lean_array_push(x_240, x_279); x_281 = l_myMacro____x40_Init_Notation___hyg_10790____closed__17; x_282 = lean_array_push(x_280, x_281); x_283 = lean_array_push(x_282, x_175); -x_284 = l_Lean_Parser_Term_matchAlt___closed__1; +x_284 = l_Lean_Elab_Term_expandFunBinders_loop___closed__13; x_285 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_285, 0, x_284); lean_ctor_set(x_285, 1, x_283); @@ -30139,7 +30032,7 @@ lean_ctor_set(x_287, 0, x_242); lean_ctor_set(x_287, 1, x_286); x_288 = l_Lean_Elab_Term_expandFunBinders_loop___closed__12; x_289 = lean_array_push(x_288, x_287); -x_290 = l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; +x_290 = l_Lean_Elab_Term_expandFunBinders_loop___closed__8; x_291 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_291, 0, x_290); lean_ctor_set(x_291, 1, x_289); @@ -30276,7 +30169,7 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_17772____closed__1() { +static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_17724____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -30286,11 +30179,11 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_17772_(lean_object* x_1) { +lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_17724_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_17772____closed__1; +x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_17724____closed__1; x_3 = l_Lean_registerTraceClass(x_2, x_1); return x_3; } @@ -31074,7 +30967,7 @@ lean_ctor_set(x_1524, 3, x_1512); lean_ctor_set(x_1524, 4, x_1516); lean_ctor_set(x_1524, 5, x_1507); lean_inc(x_13); -x_1525 = l_Lean_Elab_Command_expandMacroHeadIntoSyntaxItem(x_13, x_1524, x_1520); +x_1525 = l_Lean_Elab_Command_expandMacroArgIntoSyntaxItem(x_13, x_1524, x_1520); lean_dec(x_1524); if (lean_obj_tag(x_1525) == 0) { @@ -31487,7 +31380,7 @@ lean_ctor_set(x_1411, 2, x_1397); lean_ctor_set(x_1411, 3, x_1399); lean_ctor_set(x_1411, 4, x_1403); lean_ctor_set(x_1411, 5, x_1394); -x_1412 = l_Lean_Elab_Command_expandMacroHeadIntoPattern(x_13, x_1411, x_1407); +x_1412 = l_Lean_Elab_Command_expandMacroArgIntoPattern(x_13, x_1411, x_1407); lean_dec(x_1411); if (lean_obj_tag(x_1412) == 0) { @@ -32009,7 +31902,7 @@ x_157 = lean_array_push(x_64, x_156); x_158 = l_myMacro____x40_Init_Notation___hyg_10790____closed__17; x_159 = lean_array_push(x_157, x_158); x_160 = lean_array_push(x_159, x_22); -x_161 = l_Lean_Parser_Term_matchAlt___closed__1; +x_161 = l_Lean_Elab_Term_expandFunBinders_loop___closed__13; x_162 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_162, 0, x_161); lean_ctor_set(x_162, 1, x_160); @@ -32036,7 +31929,7 @@ lean_ctor_set(x_175, 0, x_66); lean_ctor_set(x_175, 1, x_174); x_176 = l_Lean_Elab_Term_expandFunBinders_loop___closed__12; x_177 = lean_array_push(x_176, x_175); -x_178 = l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; +x_178 = l_Lean_Elab_Term_expandFunBinders_loop___closed__8; x_179 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_179, 0, x_178); lean_ctor_set(x_179, 1, x_177); @@ -32230,7 +32123,7 @@ x_292 = lean_array_push(x_199, x_291); x_293 = l_myMacro____x40_Init_Notation___hyg_10790____closed__17; x_294 = lean_array_push(x_292, x_293); x_295 = lean_array_push(x_294, x_22); -x_296 = l_Lean_Parser_Term_matchAlt___closed__1; +x_296 = l_Lean_Elab_Term_expandFunBinders_loop___closed__13; x_297 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_297, 0, x_296); lean_ctor_set(x_297, 1, x_295); @@ -32257,7 +32150,7 @@ lean_ctor_set(x_310, 0, x_201); lean_ctor_set(x_310, 1, x_309); x_311 = l_Lean_Elab_Term_expandFunBinders_loop___closed__12; x_312 = lean_array_push(x_311, x_310); -x_313 = l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; +x_313 = l_Lean_Elab_Term_expandFunBinders_loop___closed__8; x_314 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_314, 0, x_313); lean_ctor_set(x_314, 1, x_312); @@ -32465,7 +32358,7 @@ x_433 = lean_array_push(x_339, x_432); x_434 = l_myMacro____x40_Init_Notation___hyg_10790____closed__17; x_435 = lean_array_push(x_433, x_434); x_436 = lean_array_push(x_435, x_22); -x_437 = l_Lean_Parser_Term_matchAlt___closed__1; +x_437 = l_Lean_Elab_Term_expandFunBinders_loop___closed__13; x_438 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_438, 0, x_437); lean_ctor_set(x_438, 1, x_436); @@ -32492,7 +32385,7 @@ lean_ctor_set(x_451, 0, x_341); lean_ctor_set(x_451, 1, x_450); x_452 = l_Lean_Elab_Term_expandFunBinders_loop___closed__12; x_453 = lean_array_push(x_452, x_451); -x_454 = l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; +x_454 = l_Lean_Elab_Term_expandFunBinders_loop___closed__8; x_455 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_455, 0, x_454); lean_ctor_set(x_455, 1, x_453); @@ -32687,7 +32580,7 @@ x_569 = lean_array_push(x_475, x_568); x_570 = l_myMacro____x40_Init_Notation___hyg_10790____closed__17; x_571 = lean_array_push(x_569, x_570); x_572 = lean_array_push(x_571, x_22); -x_573 = l_Lean_Parser_Term_matchAlt___closed__1; +x_573 = l_Lean_Elab_Term_expandFunBinders_loop___closed__13; x_574 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_574, 0, x_573); lean_ctor_set(x_574, 1, x_572); @@ -32714,7 +32607,7 @@ lean_ctor_set(x_587, 0, x_477); lean_ctor_set(x_587, 1, x_586); x_588 = l_Lean_Elab_Term_expandFunBinders_loop___closed__12; x_589 = lean_array_push(x_588, x_587); -x_590 = l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; +x_590 = l_Lean_Elab_Term_expandFunBinders_loop___closed__8; x_591 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_591, 0, x_590); lean_ctor_set(x_591, 1, x_589); @@ -32927,7 +32820,7 @@ x_710 = lean_array_push(x_616, x_709); x_711 = l_myMacro____x40_Init_Notation___hyg_10790____closed__17; x_712 = lean_array_push(x_710, x_711); x_713 = lean_array_push(x_667, x_705); -x_714 = l_Lean_Parser_Term_matchDiscr___elambda__1___closed__1; +x_714 = l_Lean_Elab_Term_expandFunBinders_loop___closed__4; x_715 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_715, 0, x_714); lean_ctor_set(x_715, 1, x_713); @@ -32955,7 +32848,7 @@ lean_ctor_set(x_730, 1, x_729); x_731 = lean_array_push(x_616, x_730); x_732 = lean_array_push(x_731, x_711); x_733 = lean_array_push(x_732, x_22); -x_734 = l_Lean_Parser_Term_matchAlt___closed__1; +x_734 = l_Lean_Elab_Term_expandFunBinders_loop___closed__13; x_735 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_735, 0, x_734); lean_ctor_set(x_735, 1, x_733); @@ -32982,12 +32875,12 @@ lean_ctor_set(x_748, 0, x_618); lean_ctor_set(x_748, 1, x_747); x_749 = l_Lean_Elab_Term_expandFunBinders_loop___closed__12; x_750 = lean_array_push(x_749, x_748); -x_751 = l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; +x_751 = l_Lean_Elab_Term_expandFunBinders_loop___closed__8; x_752 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_752, 0, x_751); lean_ctor_set(x_752, 1, x_750); x_753 = lean_array_push(x_722, x_752); -x_754 = l_Lean_Parser_Term_match___elambda__1___closed__1; +x_754 = l_Lean_Elab_Term_expandFunBinders_loop___closed__1; x_755 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_755, 0, x_754); lean_ctor_set(x_755, 1, x_753); @@ -33192,7 +33085,7 @@ x_872 = lean_array_push(x_778, x_871); x_873 = l_myMacro____x40_Init_Notation___hyg_10790____closed__17; x_874 = lean_array_push(x_872, x_873); x_875 = lean_array_push(x_829, x_867); -x_876 = l_Lean_Parser_Term_matchDiscr___elambda__1___closed__1; +x_876 = l_Lean_Elab_Term_expandFunBinders_loop___closed__4; x_877 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_877, 0, x_876); lean_ctor_set(x_877, 1, x_875); @@ -33220,7 +33113,7 @@ lean_ctor_set(x_892, 1, x_891); x_893 = lean_array_push(x_778, x_892); x_894 = lean_array_push(x_893, x_873); x_895 = lean_array_push(x_894, x_22); -x_896 = l_Lean_Parser_Term_matchAlt___closed__1; +x_896 = l_Lean_Elab_Term_expandFunBinders_loop___closed__13; x_897 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_897, 0, x_896); lean_ctor_set(x_897, 1, x_895); @@ -33247,12 +33140,12 @@ lean_ctor_set(x_910, 0, x_780); lean_ctor_set(x_910, 1, x_909); x_911 = l_Lean_Elab_Term_expandFunBinders_loop___closed__12; x_912 = lean_array_push(x_911, x_910); -x_913 = l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; +x_913 = l_Lean_Elab_Term_expandFunBinders_loop___closed__8; x_914 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_914, 0, x_913); lean_ctor_set(x_914, 1, x_912); x_915 = lean_array_push(x_884, x_914); -x_916 = l_Lean_Parser_Term_match___elambda__1___closed__1; +x_916 = l_Lean_Elab_Term_expandFunBinders_loop___closed__1; x_917 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_917, 0, x_916); lean_ctor_set(x_917, 1, x_915); @@ -33511,7 +33404,7 @@ x_1051 = lean_array_push(x_954, x_1050); x_1052 = l_myMacro____x40_Init_Notation___hyg_10790____closed__17; x_1053 = lean_array_push(x_1051, x_1052); x_1054 = lean_array_push(x_1005, x_1043); -x_1055 = l_Lean_Parser_Term_matchDiscr___elambda__1___closed__1; +x_1055 = l_Lean_Elab_Term_expandFunBinders_loop___closed__4; x_1056 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1056, 0, x_1055); lean_ctor_set(x_1056, 1, x_1054); @@ -33578,7 +33471,7 @@ x_1096 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1096, 0, x_1095); lean_ctor_set(x_1096, 1, x_1094); x_1097 = lean_array_push(x_1073, x_1096); -x_1098 = l_Lean_Parser_Term_matchAlt___closed__1; +x_1098 = l_Lean_Elab_Term_expandFunBinders_loop___closed__13; x_1099 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1099, 0, x_1098); lean_ctor_set(x_1099, 1, x_1097); @@ -33605,12 +33498,12 @@ lean_ctor_set(x_1112, 0, x_956); lean_ctor_set(x_1112, 1, x_1111); x_1113 = l_Lean_Elab_Term_expandFunBinders_loop___closed__12; x_1114 = lean_array_push(x_1113, x_1112); -x_1115 = l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; +x_1115 = l_Lean_Elab_Term_expandFunBinders_loop___closed__8; x_1116 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1116, 0, x_1115); lean_ctor_set(x_1116, 1, x_1114); x_1117 = lean_array_push(x_1063, x_1116); -x_1118 = l_Lean_Parser_Term_match___elambda__1___closed__1; +x_1118 = l_Lean_Elab_Term_expandFunBinders_loop___closed__1; x_1119 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1119, 0, x_1118); lean_ctor_set(x_1119, 1, x_1117); @@ -33822,7 +33715,7 @@ x_1236 = lean_array_push(x_1139, x_1235); x_1237 = l_myMacro____x40_Init_Notation___hyg_10790____closed__17; x_1238 = lean_array_push(x_1236, x_1237); x_1239 = lean_array_push(x_1190, x_1228); -x_1240 = l_Lean_Parser_Term_matchDiscr___elambda__1___closed__1; +x_1240 = l_Lean_Elab_Term_expandFunBinders_loop___closed__4; x_1241 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1241, 0, x_1240); lean_ctor_set(x_1241, 1, x_1239); @@ -33889,7 +33782,7 @@ x_1281 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1281, 0, x_1280); lean_ctor_set(x_1281, 1, x_1279); x_1282 = lean_array_push(x_1258, x_1281); -x_1283 = l_Lean_Parser_Term_matchAlt___closed__1; +x_1283 = l_Lean_Elab_Term_expandFunBinders_loop___closed__13; x_1284 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1284, 0, x_1283); lean_ctor_set(x_1284, 1, x_1282); @@ -33916,12 +33809,12 @@ lean_ctor_set(x_1297, 0, x_1141); lean_ctor_set(x_1297, 1, x_1296); x_1298 = l_Lean_Elab_Term_expandFunBinders_loop___closed__12; x_1299 = lean_array_push(x_1298, x_1297); -x_1300 = l_Lean_Parser_Term_matchAlts___elambda__1___closed__1; +x_1300 = l_Lean_Elab_Term_expandFunBinders_loop___closed__8; x_1301 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1301, 0, x_1300); lean_ctor_set(x_1301, 1, x_1299); x_1302 = lean_array_push(x_1248, x_1301); -x_1303 = l_Lean_Parser_Term_match___elambda__1___closed__1; +x_1303 = l_Lean_Elab_Term_expandFunBinders_loop___closed__1; x_1304 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1304, 0, x_1303); lean_ctor_set(x_1304, 1, x_1302); @@ -34700,9 +34593,9 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabMacro___closed__1); res = l___regBuiltin_Lean_Elab_Command_elabMacro(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_17772____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_17772____closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_17772____closed__1); -res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_17772_(lean_io_mk_world()); +l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_17724____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_17724____closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_17724____closed__1); +res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Syntax___hyg_17724_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_Elab_Command_withExpectedType___closed__1 = _init_l_Lean_Elab_Command_withExpectedType___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Binders.c b/stage0/stdlib/Lean/Elab/Tactic/Binders.c index bcc45fd3f3..67277fbf6f 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Binders.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Binders.c @@ -18,6 +18,7 @@ extern lean_object* l_myMacro____x40_Init_Notation___hyg_49____closed__16; lean_object* l_Lean_Elab_Tactic_expandShowTactic___closed__5; lean_object* l___private_Lean_Elab_Tactic_Binders_0__Lean_Elab_Tactic_liftTermBinderSyntax(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_expandLetTactic(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_nullKind; lean_object* l_Lean_Elab_Tactic_expandHaveTactic(lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Array_append___rarg(lean_object*, lean_object*); @@ -80,6 +81,7 @@ extern lean_object* l_myMacro____x40_Init_Notation___hyg_521____closed__23; lean_object* l___regBuiltin_Lean_Elab_Tactic_expandShowTactic(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_expandLetRecTactic___closed__1; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); +extern lean_object* l_Lean_mkOptionalNode___closed__2; extern lean_object* l_Lean_Parser_Tactic_intro___closed__1; lean_object* l___regBuiltin_Lean_Elab_Tactic_expandSufficesTactic(lean_object*); lean_object* l_Lean_Elab_Tactic_expandLetRecTactic___boxed(lean_object*, lean_object*, lean_object*); @@ -273,7 +275,7 @@ return x_12; } else { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 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; x_13 = l_myMacro____x40_Init_Notation___hyg_1625____closed__1; x_14 = lean_name_mk_string(x_7, x_13); x_15 = lean_name_mk_string(x_14, x_6); @@ -281,46 +283,52 @@ x_16 = l_Lean_Syntax_getArgs(x_1); x_17 = l_Lean_Parser_Error_toString___closed__2; x_18 = l_Lean_mkAtomFrom(x_1, x_17); lean_dec(x_1); -x_19 = l_Lean_Syntax_mkApp___closed__1; +x_19 = l_Lean_mkOptionalNode___closed__2; x_20 = lean_array_push(x_19, x_18); -x_21 = l___private_Lean_Elab_Tactic_Binders_0__Lean_Elab_Tactic_liftTermBinderSyntax___closed__4; -x_22 = lean_array_push(x_20, x_21); -x_23 = l_Array_append___rarg(x_16, x_22); -lean_dec(x_22); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_15); -lean_ctor_set(x_24, 1, x_23); -x_25 = l___private_Lean_Elab_Tactic_Binders_0__Lean_Elab_Tactic_liftTermBinderSyntax___closed__7; -x_26 = lean_array_push(x_25, x_24); -x_27 = l_Lean_Parser_Tactic_refine___closed__2; +x_21 = l_Lean_nullKind; +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_20); +x_23 = l_Lean_Syntax_mkApp___closed__1; +x_24 = lean_array_push(x_23, x_22); +x_25 = l___private_Lean_Elab_Tactic_Binders_0__Lean_Elab_Tactic_liftTermBinderSyntax___closed__4; +x_26 = lean_array_push(x_24, x_25); +x_27 = l_Array_append___rarg(x_16, x_26); +lean_dec(x_26); x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_26); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_3); -return x_29; +lean_ctor_set(x_28, 0, x_15); +lean_ctor_set(x_28, 1, x_27); +x_29 = l___private_Lean_Elab_Tactic_Binders_0__Lean_Elab_Tactic_liftTermBinderSyntax___closed__7; +x_30 = lean_array_push(x_29, x_28); +x_31 = l_Lean_Parser_Tactic_refine___closed__2; +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_30); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_3); +return x_33; } } else { -lean_object* x_30; lean_object* x_31; +lean_object* x_34; lean_object* x_35; lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_30 = l___private_Lean_Elab_Tactic_Binders_0__Lean_Elab_Tactic_liftTermBinderSyntax___closed__5; -x_31 = l_Lean_Macro_throwError___rarg(x_30, x_2, x_3); -return x_31; +x_34 = l___private_Lean_Elab_Tactic_Binders_0__Lean_Elab_Tactic_liftTermBinderSyntax___closed__5; +x_35 = l_Lean_Macro_throwError___rarg(x_34, x_2, x_3); +return x_35; } } else { -lean_object* x_32; lean_object* x_33; +lean_object* x_36; lean_object* x_37; lean_dec(x_4); lean_dec(x_1); -x_32 = l___private_Lean_Elab_Tactic_Binders_0__Lean_Elab_Tactic_liftTermBinderSyntax___closed__5; -x_33 = l_Lean_Macro_throwError___rarg(x_32, x_2, x_3); -return x_33; +x_36 = l___private_Lean_Elab_Tactic_Binders_0__Lean_Elab_Tactic_liftTermBinderSyntax___closed__5; +x_37 = l_Lean_Macro_throwError___rarg(x_36, x_2, x_3); +return x_37; } } } diff --git a/stage0/stdlib/Lean/Elab/Tactic/Induction.c b/stage0/stdlib/Lean/Elab/Tactic/Induction.c index 0210aedb36..c234ec6e86 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Induction.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Induction.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Elab.Tactic.Induction -// Imports: Init Lean.Meta.RecursorInfo Lean.Meta.CollectMVars Lean.Meta.Tactic.ElimInfo Lean.Meta.Tactic.Induction Lean.Meta.Tactic.Cases Lean.Elab.App Lean.Elab.Tactic.ElabTerm Lean.Elab.Tactic.Generalize +// Imports: Init Lean.Parser.Term Lean.Meta.RecursorInfo Lean.Meta.CollectMVars Lean.Meta.Tactic.ElimInfo Lean.Meta.Tactic.Induction Lean.Meta.Tactic.Cases Lean.Elab.App Lean.Elab.Tactic.ElabTerm Lean.Elab.Tactic.Generalize #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -178,7 +178,6 @@ lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_elabTagg lean_object* l_Lean_Meta_appendTag(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalInduction___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); -extern lean_object* l_myMacro____x40_Init_Notation___hyg_49____closed__15; lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltDArrow(lean_object*); lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfoDefault___spec__1___closed__2; @@ -277,6 +276,7 @@ lean_object* l_Lean_Elab_Tactic_ElimApp_State_targetPos___default; lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Tactic_getRecFromUsing___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_forIn_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfoDefault___spec__1___lambda__1(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltVarNames___boxed(lean_object*); +extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___closed__21; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___spec__4___closed__3; lean_object* l_Lean_Elab_Tactic_ElimApp_mkElimApp_loop_match__1(lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Elab_Tactic_ElimApp_evalAlts___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -341,7 +341,6 @@ lean_object* l_Lean_Meta_introNCore(lean_object*, lean_object*, lean_object*, ui lean_object* l_Lean_Elab_Tactic_evalCases___lambda__2___closed__3; lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltCtorNames___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_Lean_fmt___at_Lean_Position_instToFormatPosition___spec__1(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_ElimApp_evalAlts___spec__5___lambda__1___closed__5; lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_match__6___rarg(lean_object*, lean_object*); lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); @@ -434,13 +433,13 @@ lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Tactic_getRecFro extern lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_addRecParams___closed__1; lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeVars___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltName(lean_object*); -lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___closed__5; lean_object* l_Lean_Elab_Tactic_ElimApp_mkElimApp_loop___closed__2; lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getAltsOfInductionAlts___boxed(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_getRecInfoDefault___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaTacticAux___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_fmt___at_Lean_Level_LevelToFormat_Result_format___spec__1(lean_object*); uint8_t l_Lean_BinderInfo_isExplicit(uint8_t); lean_object* l_Lean_Elab_Tactic_ElimApp_evalAlts_match__8(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_addInstMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -14466,15 +14465,6 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_myMacro____x40_Init_Notation___hyg_49____closed__15; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult(lean_object* x_1, lean_object* x_2, 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: { @@ -14491,7 +14481,7 @@ if (x_16 == 0) lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_dec(x_3); lean_dec(x_2); -x_17 = l_Lean_fmt___at_Lean_Position_instToFormatPosition___spec__1(x_15); +x_17 = l_Lean_fmt___at_Lean_Level_LevelToFormat_Result_format___spec__1(x_15); x_18 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_18, 0, x_17); x_19 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___closed__2; @@ -14502,13 +14492,13 @@ x_21 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult_ x_22 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_22, 0, x_20); lean_ctor_set(x_22, 1, x_21); -x_23 = l_Lean_fmt___at_Lean_Position_instToFormatPosition___spec__1(x_14); +x_23 = l_Lean_fmt___at_Lean_Level_LevelToFormat_Result_format___spec__1(x_14); x_24 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_24, 0, x_23); x_25 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_25, 0, x_22); lean_ctor_set(x_25, 1, x_24); -x_26 = l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___closed__5; +x_26 = l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___closed__21; x_27 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_27, 0, x_25); lean_ctor_set(x_27, 1, x_26); @@ -17758,7 +17748,7 @@ else { lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_inc(x_23); -x_87 = l_Lean_fmt___at_Lean_Position_instToFormatPosition___spec__1(x_23); +x_87 = l_Lean_fmt___at_Lean_Level_LevelToFormat_Result_format___spec__1(x_23); x_88 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_88, 0, x_87); x_89 = l_Lean_Elab_Tactic_evalCasesOn___closed__4; @@ -18847,6 +18837,7 @@ return x_5; } } lean_object* initialize_Init(lean_object*); +lean_object* initialize_Lean_Parser_Term(lean_object*); lean_object* initialize_Lean_Meta_RecursorInfo(lean_object*); lean_object* initialize_Lean_Meta_CollectMVars(lean_object*); lean_object* initialize_Lean_Meta_Tactic_ElimInfo(lean_object*); @@ -18863,6 +18854,9 @@ _G_initialized = true; res = initialize_Init(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Parser_Term(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); res = initialize_Lean_Meta_RecursorInfo(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -19015,8 +19009,6 @@ l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___close lean_mark_persistent(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___closed__3); l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___closed__4 = _init_l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___closed__4(); lean_mark_persistent(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___closed__4); -l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___closed__5 = _init_l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_processResult___closed__5); l_Lean_Elab_Tactic_evalInduction___lambda__4___closed__1 = _init_l_Lean_Elab_Tactic_evalInduction___lambda__4___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_evalInduction___lambda__4___closed__1); l_Lean_Elab_Tactic_evalInduction___lambda__4___closed__2 = _init_l_Lean_Elab_Tactic_evalInduction___lambda__4___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Match.c b/stage0/stdlib/Lean/Elab/Tactic/Match.c index 7f72e7242f..d534464109 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Match.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Match.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Elab.Tactic.Match -// Imports: Init Lean.Elab.Match Lean.Elab.Tactic.Basic Lean.Elab.Tactic.Induction +// Imports: Init Lean.Parser.Term Lean.Elab.Match Lean.Elab.Tactic.Basic Lean.Elab.Tactic.Induction #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -1226,6 +1226,7 @@ return x_5; } } lean_object* initialize_Init(lean_object*); +lean_object* initialize_Lean_Parser_Term(lean_object*); lean_object* initialize_Lean_Elab_Match(lean_object*); lean_object* initialize_Lean_Elab_Tactic_Basic(lean_object*); lean_object* initialize_Lean_Elab_Tactic_Induction(lean_object*); @@ -1237,6 +1238,9 @@ _G_initialized = true; res = initialize_Init(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Parser_Term(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); res = initialize_Lean_Elab_Match(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); diff --git a/stage0/stdlib/Lean/Parser/Syntax.c b/stage0/stdlib/Lean/Parser/Syntax.c index 16ca44ef13..764bfbbd81 100644 --- a/stage0/stdlib/Lean/Parser/Syntax.c +++ b/stage0/stdlib/Lean/Parser/Syntax.c @@ -14,7 +14,6 @@ extern "C" { #endif lean_object* l_Lean_Parser_Command_infixl___elambda__1___closed__8; -lean_object* l_Lean_Parser_Command_macroHead___closed__3; lean_object* l_Lean_Parser_Command_syntax___elambda__1___closed__6; extern lean_object* l_Lean_Parser_Term_doubleQuotedName___elambda__1___closed__6; lean_object* l_Lean_Parser_Command_optKindPrio_formatter___closed__7; @@ -178,6 +177,7 @@ lean_object* l_Lean_Parser_Syntax_binary_parenthesizer___closed__3; lean_object* l_Lean_Parser_Syntax_nonReserved___elambda__1___closed__6; lean_object* l_Lean_Parser_maxSymbol___elambda__1___closed__2; lean_object* l_Lean_Parser_Syntax_unary___closed__2; +lean_object* l_Lean_Parser_Command_macro_formatter___closed__13; lean_object* l_Lean_Parser_Command_prefix___elambda__1___closed__6; lean_object* l_Lean_Parser_Command_infixr_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_term___u2218_____closed__6; @@ -278,7 +278,6 @@ lean_object* l_Lean_Parser_Command_identPrec_parenthesizer___closed__2; extern lean_object* l_Lean_Parser_mkAntiquot___closed__4; lean_object* l_Lean_Parser_addBuiltinParser(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Parser_Syntax_atom_formatter___closed__1; -lean_object* l_Lean_Parser_Command_macroHead___closed__2; lean_object* l_Lean_Parser_optional_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_mixfixKind_formatter___closed__6; lean_object* l_Lean_Parser_Command_macroArgSimple_formatter___closed__2; @@ -324,7 +323,6 @@ lean_object* l_Lean_Parser_Syntax_cat_formatter___closed__2; lean_object* l_Lean_Parser_Command_elab_formatter___closed__2; lean_object* l_Lean_Parser_Command_notation_formatter___closed__5; lean_object* l_Lean_Parser_Command_macro___elambda__1___closed__3; -lean_object* l_Lean_Parser_Command_macroHead___closed__1; lean_object* l_Lean_Parser_Command_elab__rules___elambda__1___closed__12; lean_object* l_Lean_Parser_Command_parserKindPrio_parenthesizer___closed__3; lean_object* l_Lean_Parser_Command_elab___elambda__1___closed__11; @@ -520,7 +518,6 @@ lean_object* l_Lean_Parser_Syntax_binary___elambda__1___closed__3; lean_object* l_Lean_PrettyPrinter_Formatter_identEq_formatter___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_maxSymbol___closed__2; lean_object* l_Lean_Parser_Command_macroTail_formatter___closed__4; -lean_object* l_Lean_Parser_Command_macroHead___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_notation_parenthesizer___closed__7; lean_object* l_Lean_Parser_Command_parserPrio_parenthesizer___closed__2; lean_object* l_Lean_Parser_Syntax_nonReserved_parenthesizer___closed__1; @@ -628,6 +625,7 @@ lean_object* l___regBuiltin_Lean_Parser_Command_syntaxAbbrev_parenthesizer(lean_ lean_object* l_Lean_Parser_Command_notation_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_elab__rules; lean_object* l_Lean_Parser_Syntax_sepBy___elambda__1___closed__20; +lean_object* l_Lean_Parser_Command_macro_parenthesizer___closed__12; lean_object* l_Lean_Parser_Command_macro_formatter___closed__1; lean_object* l_Lean_Parser_Command_macroTailCommand___closed__2; lean_object* l_Lean_Parser_Command_macro_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1122,7 +1120,6 @@ extern lean_object* l_myMacro____x40_Init_Notation___hyg_49____closed__8; extern lean_object* l_Lean_Parser_Term_typeAscription___closed__1; lean_object* l_Lean_Parser_Command_parserKind___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Syntax_paren_formatter___closed__5; -lean_object* l_Lean_Parser_Command_macroHead_parenthesizer___closed__1; lean_object* l_Lean_Parser_Command_notation___elambda__1___closed__8; lean_object* l_Lean_Parser_categoryParser___elambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_macro__rules_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1175,7 +1172,6 @@ lean_object* l_Lean_Parser_Command_infixl___closed__1; lean_object* l_Lean_Parser_Syntax_unary___closed__5; lean_object* l_Lean_Parser_Command_optKind___closed__4; lean_object* l_Lean_Parser_Syntax_sepBy_parenthesizer___closed__8; -lean_object* l_Lean_Parser_Command_macroHead_formatter___closed__1; lean_object* l_Lean_Parser_Command_syntax___closed__11; lean_object* l_Lean_Parser_precedenceLit___elambda__1(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_instInhabitedParser___closed__2; @@ -12559,56 +12555,11 @@ x_1 = l_Lean_Parser_Command_macroArg___closed__3; return x_1; } } -lean_object* l_Lean_Parser_Command_macroHead___elambda__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; -x_3 = l_Lean_Parser_Command_macroArg___closed__2; -x_4 = l_Lean_Parser_ident___closed__2; -x_5 = 1; -x_6 = l_Lean_Parser_orelseFnCore(x_3, x_4, x_5, x_1, x_2); -return x_6; -} -} -static lean_object* _init_l_Lean_Parser_Command_macroHead___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Parser_Command_macroArg; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = l_Lean_Parser_ident; -x_4 = lean_ctor_get(x_3, 0); -lean_inc(x_4); -x_5 = l_Lean_Parser_orelseInfo(x_2, x_4); -return x_5; -} -} -static lean_object* _init_l_Lean_Parser_Command_macroHead___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Command_macroHead___elambda__1), 2, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Parser_Command_macroHead___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_macroHead___closed__1; -x_2 = l_Lean_Parser_Command_macroHead___closed__2; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Parser_Command_macroHead() { _start: { lean_object* x_1; -x_1 = l_Lean_Parser_Command_macroHead___closed__3; +x_1 = l_Lean_Parser_Command_macroArg; return x_1; } } @@ -13268,13 +13219,15 @@ return x_4; static lean_object* _init_l_Lean_Parser_Command_macro___elambda__1___closed__7() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_macroHead___closed__2; -x_2 = l_Lean_Parser_Command_macro___elambda__1___closed__6; -x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Command_macroHead; +x_2 = lean_ctor_get(x_1, 1); +lean_inc(x_2); +x_3 = l_Lean_Parser_Command_macro___elambda__1___closed__6; +x_4 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2); +lean_closure_set(x_4, 0, x_2); +lean_closure_set(x_4, 1, x_3); +return x_4; } } static lean_object* _init_l_Lean_Parser_Command_macro___elambda__1___closed__8() { @@ -13636,22 +13589,12 @@ x_8 = l_Lean_PrettyPrinter_Formatter_orelse_formatter(x_6, x_7, x_1, x_2, x_3, x return x_8; } } -static lean_object* _init_l_Lean_Parser_Command_macroHead_formatter___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Command_macroArg_formatter), 5, 0); -return x_1; -} -} lean_object* l_Lean_Parser_Command_macroHead_formatter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = l_Lean_Parser_Command_macroHead_formatter___closed__1; -x_7 = l_Lean_initFn____x40_Lean_Parser_Extra___hyg_957____closed__11; -x_8 = l_Lean_PrettyPrinter_Formatter_orelse_formatter(x_6, x_7, x_1, x_2, x_3, x_4, x_5); -return x_8; +lean_object* x_6; +x_6 = l_Lean_Parser_Command_macroArg_formatter(x_1, x_2, x_3, x_4, x_5); +return x_6; } } static lean_object* _init_l_Lean_Parser_Command_macroTailTactic_formatter___closed__1() { @@ -13960,14 +13903,22 @@ return x_2; static lean_object* _init_l_Lean_Parser_Command_macro_formatter___closed__3() { _start: { +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Command_macroArg_formatter), 5, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Command_macro_formatter___closed__4() { +_start: +{ lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Command_macroHead_formatter___closed__1; +x_1 = l_Lean_Parser_Command_macro_formatter___closed__3; x_2 = lean_alloc_closure((void*)(l_Lean_Parser_many_formatter), 6, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Command_macro_formatter___closed__4() { +static lean_object* _init_l_Lean_Parser_Command_macro_formatter___closed__5() { _start: { lean_object* x_1; @@ -13975,31 +13926,11 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Command_macroTail_formatter), 5, return x_1; } } -static lean_object* _init_l_Lean_Parser_Command_macro_formatter___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_macro_formatter___closed__3; -x_2 = l_Lean_Parser_Command_macro_formatter___closed__4; -x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Parser_Command_macro_formatter___closed__6() { _start: { -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Command_macroHead_formatter), 5, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Parser_Command_macro_formatter___closed__7() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_macro_formatter___closed__6; +x_1 = l_Lean_Parser_Command_macro_formatter___closed__4; x_2 = l_Lean_Parser_Command_macro_formatter___closed__5; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); lean_closure_set(x_3, 0, x_1); @@ -14007,12 +13938,20 @@ lean_closure_set(x_3, 1, x_2); return x_3; } } +static lean_object* _init_l_Lean_Parser_Command_macro_formatter___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Command_macroHead_formatter), 5, 0); +return x_1; +} +} static lean_object* _init_l_Lean_Parser_Command_macro_formatter___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_mixfix_formatter___closed__4; -x_2 = l_Lean_Parser_Command_macro_formatter___closed__7; +x_1 = l_Lean_Parser_Command_macro_formatter___closed__7; +x_2 = l_Lean_Parser_Command_macro_formatter___closed__6; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); @@ -14023,7 +13962,7 @@ static lean_object* _init_l_Lean_Parser_Command_macro_formatter___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Syntax_cat_formatter___closed__2; +x_1 = l_Lean_Parser_Command_mixfix_formatter___closed__4; x_2 = l_Lean_Parser_Command_macro_formatter___closed__8; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); lean_closure_set(x_3, 0, x_1); @@ -14035,7 +13974,7 @@ static lean_object* _init_l_Lean_Parser_Command_macro_formatter___closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_macro_formatter___closed__2; +x_1 = l_Lean_Parser_Syntax_cat_formatter___closed__2; x_2 = l_Lean_Parser_Command_macro_formatter___closed__9; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); lean_closure_set(x_3, 0, x_1); @@ -14046,20 +13985,32 @@ return x_3; static lean_object* _init_l_Lean_Parser_Command_macro_formatter___closed__11() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Command_macro_formatter___closed__10; -x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_suppressInsideQuot_formatter), 6, 1); -lean_closure_set(x_2, 0, x_1); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Command_macro_formatter___closed__2; +x_2 = l_Lean_Parser_Command_macro_formatter___closed__10; +x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Parser_Command_macro_formatter___closed__12() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Command_macro_formatter___closed__11; +x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_suppressInsideQuot_formatter), 6, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Parser_Command_macro_formatter___closed__13() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Command_macro___elambda__1___closed__2; x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Command_macro_formatter___closed__11; +x_3 = l_Lean_Parser_Command_macro_formatter___closed__12; x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3); lean_closure_set(x_4, 0, x_1); lean_closure_set(x_4, 1, x_2); @@ -14072,7 +14023,7 @@ _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = l_Lean_Parser_Command_macro_formatter___closed__1; -x_7 = l_Lean_Parser_Command_macro_formatter___closed__12; +x_7 = l_Lean_Parser_Command_macro_formatter___closed__13; x_8 = l_Lean_PrettyPrinter_Formatter_orelse_formatter(x_6, x_7, x_1, x_2, x_3, x_4, x_5); return x_8; } @@ -14207,22 +14158,12 @@ x_8 = l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer(x_6, x_7, x_1, x_2 return x_8; } } -static lean_object* _init_l_Lean_Parser_Command_macroHead_parenthesizer___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Command_macroArg_parenthesizer), 5, 0); -return x_1; -} -} lean_object* l_Lean_Parser_Command_macroHead_parenthesizer(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = l_Lean_Parser_Command_macroHead_parenthesizer___closed__1; -x_7 = l_Lean_initFn____x40_Lean_Parser_Extra___hyg_870____closed__19; -x_8 = l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer(x_6, x_7, x_1, x_2, x_3, x_4, x_5); -return x_8; +lean_object* x_6; +x_6 = l_Lean_Parser_Command_macroArg_parenthesizer(x_1, x_2, x_3, x_4, x_5); +return x_6; } } static lean_object* _init_l_Lean_Parser_Command_macroTailTactic_parenthesizer___closed__1() { @@ -14509,14 +14450,22 @@ return x_4; static lean_object* _init_l_Lean_Parser_Command_macro_parenthesizer___closed__2() { _start: { +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Command_macroArg_parenthesizer), 5, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Command_macro_parenthesizer___closed__3() { +_start: +{ lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Command_macroHead_parenthesizer___closed__1; +x_1 = l_Lean_Parser_Command_macro_parenthesizer___closed__2; x_2 = lean_alloc_closure((void*)(l_Lean_Parser_many_parenthesizer), 6, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_Command_macro_parenthesizer___closed__3() { +static lean_object* _init_l_Lean_Parser_Command_macro_parenthesizer___closed__4() { _start: { lean_object* x_1; @@ -14524,31 +14473,11 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Command_macroTail_parenthesizer), return x_1; } } -static lean_object* _init_l_Lean_Parser_Command_macro_parenthesizer___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_macro_parenthesizer___closed__2; -x_2 = l_Lean_Parser_Command_macro_parenthesizer___closed__3; -x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Parser_Command_macro_parenthesizer___closed__5() { _start: { -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Command_macroHead_parenthesizer), 5, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Parser_Command_macro_parenthesizer___closed__6() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_macro_parenthesizer___closed__5; +x_1 = l_Lean_Parser_Command_macro_parenthesizer___closed__3; x_2 = l_Lean_Parser_Command_macro_parenthesizer___closed__4; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); lean_closure_set(x_3, 0, x_1); @@ -14556,12 +14485,20 @@ lean_closure_set(x_3, 1, x_2); return x_3; } } +static lean_object* _init_l_Lean_Parser_Command_macro_parenthesizer___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Command_macroHead_parenthesizer), 5, 0); +return x_1; +} +} static lean_object* _init_l_Lean_Parser_Command_macro_parenthesizer___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Command_mixfix_parenthesizer___closed__4; -x_2 = l_Lean_Parser_Command_macro_parenthesizer___closed__6; +x_1 = l_Lean_Parser_Command_macro_parenthesizer___closed__6; +x_2 = l_Lean_Parser_Command_macro_parenthesizer___closed__5; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); @@ -14572,7 +14509,7 @@ static lean_object* _init_l_Lean_Parser_Command_macro_parenthesizer___closed__8( _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Syntax_cat_parenthesizer___closed__2; +x_1 = l_Lean_Parser_Command_mixfix_parenthesizer___closed__4; x_2 = l_Lean_Parser_Command_macro_parenthesizer___closed__7; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); lean_closure_set(x_3, 0, x_1); @@ -14584,7 +14521,7 @@ static lean_object* _init_l_Lean_Parser_Command_macro_parenthesizer___closed__9( _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_antiquotNestedExpr_parenthesizer___closed__3; +x_1 = l_Lean_Parser_Syntax_cat_parenthesizer___closed__2; x_2 = l_Lean_Parser_Command_macro_parenthesizer___closed__8; x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); lean_closure_set(x_3, 0, x_1); @@ -14595,20 +14532,32 @@ return x_3; static lean_object* _init_l_Lean_Parser_Command_macro_parenthesizer___closed__10() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Command_macro_parenthesizer___closed__9; -x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_suppressInsideQuot_parenthesizer), 6, 1); -lean_closure_set(x_2, 0, x_1); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_antiquotNestedExpr_parenthesizer___closed__3; +x_2 = l_Lean_Parser_Command_macro_parenthesizer___closed__9; +x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Parser_Command_macro_parenthesizer___closed__11() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Command_macro_parenthesizer___closed__10; +x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_suppressInsideQuot_parenthesizer), 6, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Parser_Command_macro_parenthesizer___closed__12() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Command_macro___elambda__1___closed__2; x_2 = lean_unsigned_to_nat(1024u); -x_3 = l_Lean_Parser_Command_macro_parenthesizer___closed__10; +x_3 = l_Lean_Parser_Command_macro_parenthesizer___closed__11; x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___boxed), 8, 3); lean_closure_set(x_4, 0, x_1); lean_closure_set(x_4, 1, x_2); @@ -14621,7 +14570,7 @@ _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = l_Lean_Parser_Command_macro_parenthesizer___closed__1; -x_7 = l_Lean_Parser_Command_macro_parenthesizer___closed__11; +x_7 = l_Lean_Parser_Command_macro_parenthesizer___closed__12; x_8 = l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer(x_6, x_7, x_1, x_2, x_3, x_4, x_5); return x_8; } @@ -15718,11 +15667,9 @@ return x_7; lean_object* l_Lean_Parser_Command_elabHead_formatter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = l_Lean_Parser_Command_macroHead_formatter___closed__1; -x_7 = l_Lean_initFn____x40_Lean_Parser_Extra___hyg_957____closed__11; -x_8 = l_Lean_PrettyPrinter_Formatter_orelse_formatter(x_6, x_7, x_1, x_2, x_3, x_4, x_5); -return x_8; +lean_object* x_6; +x_6 = l_Lean_Parser_Command_macroArg_formatter(x_1, x_2, x_3, x_4, x_5); +return x_6; } } lean_object* l_Lean_Parser_Command_elabArg_formatter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { @@ -15984,11 +15931,9 @@ return x_5; lean_object* l_Lean_Parser_Command_elabHead_parenthesizer(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = l_Lean_Parser_Command_macroHead_parenthesizer___closed__1; -x_7 = l_Lean_initFn____x40_Lean_Parser_Extra___hyg_870____closed__19; -x_8 = l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer(x_6, x_7, x_1, x_2, x_3, x_4, x_5); -return x_8; +lean_object* x_6; +x_6 = l_Lean_Parser_Command_macroArg_parenthesizer(x_1, x_2, x_3, x_4, x_5); +return x_6; } } lean_object* l_Lean_Parser_Command_elabArg_parenthesizer(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { @@ -18067,12 +18012,6 @@ l_Lean_Parser_Command_macroArg___closed__3 = _init_l_Lean_Parser_Command_macroAr lean_mark_persistent(l_Lean_Parser_Command_macroArg___closed__3); l_Lean_Parser_Command_macroArg = _init_l_Lean_Parser_Command_macroArg(); lean_mark_persistent(l_Lean_Parser_Command_macroArg); -l_Lean_Parser_Command_macroHead___closed__1 = _init_l_Lean_Parser_Command_macroHead___closed__1(); -lean_mark_persistent(l_Lean_Parser_Command_macroHead___closed__1); -l_Lean_Parser_Command_macroHead___closed__2 = _init_l_Lean_Parser_Command_macroHead___closed__2(); -lean_mark_persistent(l_Lean_Parser_Command_macroHead___closed__2); -l_Lean_Parser_Command_macroHead___closed__3 = _init_l_Lean_Parser_Command_macroHead___closed__3(); -lean_mark_persistent(l_Lean_Parser_Command_macroHead___closed__3); l_Lean_Parser_Command_macroHead = _init_l_Lean_Parser_Command_macroHead(); lean_mark_persistent(l_Lean_Parser_Command_macroHead); l_Lean_Parser_Command_macroTailTactic___elambda__1___closed__1 = _init_l_Lean_Parser_Command_macroTailTactic___elambda__1___closed__1(); @@ -18234,8 +18173,6 @@ l_Lean_Parser_Command_macroArg_formatter___closed__1 = _init_l_Lean_Parser_Comma lean_mark_persistent(l_Lean_Parser_Command_macroArg_formatter___closed__1); l_Lean_Parser_Command_macroArg_formatter___closed__2 = _init_l_Lean_Parser_Command_macroArg_formatter___closed__2(); lean_mark_persistent(l_Lean_Parser_Command_macroArg_formatter___closed__2); -l_Lean_Parser_Command_macroHead_formatter___closed__1 = _init_l_Lean_Parser_Command_macroHead_formatter___closed__1(); -lean_mark_persistent(l_Lean_Parser_Command_macroHead_formatter___closed__1); l_Lean_Parser_Command_macroTailTactic_formatter___closed__1 = _init_l_Lean_Parser_Command_macroTailTactic_formatter___closed__1(); lean_mark_persistent(l_Lean_Parser_Command_macroTailTactic_formatter___closed__1); l_Lean_Parser_Command_macroTailTactic_formatter___closed__2 = _init_l_Lean_Parser_Command_macroTailTactic_formatter___closed__2(); @@ -18304,6 +18241,8 @@ l_Lean_Parser_Command_macro_formatter___closed__11 = _init_l_Lean_Parser_Command lean_mark_persistent(l_Lean_Parser_Command_macro_formatter___closed__11); l_Lean_Parser_Command_macro_formatter___closed__12 = _init_l_Lean_Parser_Command_macro_formatter___closed__12(); lean_mark_persistent(l_Lean_Parser_Command_macro_formatter___closed__12); +l_Lean_Parser_Command_macro_formatter___closed__13 = _init_l_Lean_Parser_Command_macro_formatter___closed__13(); +lean_mark_persistent(l_Lean_Parser_Command_macro_formatter___closed__13); l___regBuiltin_Lean_Parser_Command_macro_formatter___closed__1 = _init_l___regBuiltin_Lean_Parser_Command_macro_formatter___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Parser_Command_macro_formatter___closed__1); res = l___regBuiltin_Lean_Parser_Command_macro_formatter(lean_io_mk_world()); @@ -18325,8 +18264,6 @@ l_Lean_Parser_Command_macroArg_parenthesizer___closed__1 = _init_l_Lean_Parser_C lean_mark_persistent(l_Lean_Parser_Command_macroArg_parenthesizer___closed__1); l_Lean_Parser_Command_macroArg_parenthesizer___closed__2 = _init_l_Lean_Parser_Command_macroArg_parenthesizer___closed__2(); lean_mark_persistent(l_Lean_Parser_Command_macroArg_parenthesizer___closed__2); -l_Lean_Parser_Command_macroHead_parenthesizer___closed__1 = _init_l_Lean_Parser_Command_macroHead_parenthesizer___closed__1(); -lean_mark_persistent(l_Lean_Parser_Command_macroHead_parenthesizer___closed__1); l_Lean_Parser_Command_macroTailTactic_parenthesizer___closed__1 = _init_l_Lean_Parser_Command_macroTailTactic_parenthesizer___closed__1(); lean_mark_persistent(l_Lean_Parser_Command_macroTailTactic_parenthesizer___closed__1); l_Lean_Parser_Command_macroTailTactic_parenthesizer___closed__2 = _init_l_Lean_Parser_Command_macroTailTactic_parenthesizer___closed__2(); @@ -18391,6 +18328,8 @@ l_Lean_Parser_Command_macro_parenthesizer___closed__10 = _init_l_Lean_Parser_Com lean_mark_persistent(l_Lean_Parser_Command_macro_parenthesizer___closed__10); l_Lean_Parser_Command_macro_parenthesizer___closed__11 = _init_l_Lean_Parser_Command_macro_parenthesizer___closed__11(); lean_mark_persistent(l_Lean_Parser_Command_macro_parenthesizer___closed__11); +l_Lean_Parser_Command_macro_parenthesizer___closed__12 = _init_l_Lean_Parser_Command_macro_parenthesizer___closed__12(); +lean_mark_persistent(l_Lean_Parser_Command_macro_parenthesizer___closed__12); l___regBuiltin_Lean_Parser_Command_macro_parenthesizer___closed__1 = _init_l___regBuiltin_Lean_Parser_Command_macro_parenthesizer___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Parser_Command_macro_parenthesizer___closed__1); res = l___regBuiltin_Lean_Parser_Command_macro_parenthesizer(lean_io_mk_world());