chore: update stage0
This commit is contained in:
parent
ffefd8db36
commit
4250ee1e16
28 changed files with 2067 additions and 3320 deletions
18
stage0/src/Init/Meta.lean
generated
18
stage0/src/Init/Meta.lean
generated
|
|
@ -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⟩
|
||||
|
||||
|
|
|
|||
5
stage0/src/Lean/Elab/BuiltinNotation.lean
generated
5
stage0/src/Lean/Elab/BuiltinNotation.lean
generated
|
|
@ -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
|
||||
|
|
|
|||
17
stage0/src/Lean/Elab/Command.lean
generated
17
stage0/src/Lean/Elab/Command.lean
generated
|
|
@ -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
|
||||
|
|
|
|||
43
stage0/src/Lean/Elab/DefView.lean
generated
43
stage0/src/Lean/Elab/DefView.lean
generated
|
|
@ -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"
|
||||
|
|
|
|||
13
stage0/src/Lean/Elab/Structure.lean
generated
13
stage0/src/Lean/Elab/Structure.lean
generated
|
|
@ -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
|
||||
|
|
|
|||
24
stage0/src/Lean/Elab/Syntax.lean
generated
24
stage0/src/Lean/Elab/Syntax.lean
generated
|
|
@ -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 [<kind>] ...` 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
|
||||
|
|
|
|||
2
stage0/src/Lean/Elab/Tactic/Binders.lean
generated
2
stage0/src/Lean/Elab/Tactic/Binders.lean
generated
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
3
stage0/src/Lean/Elab/Tactic/Induction.lean
generated
3
stage0/src/Lean/Elab/Tactic/Induction.lean
generated
|
|
@ -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
|
||||
|
|
|
|||
4
stage0/src/Lean/Elab/Tactic/Location.lean
generated
4
stage0/src/Lean/Elab/Tactic/Location.lean
generated
|
|
@ -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 :=
|
||||
|
|
|
|||
9
stage0/src/Lean/Elab/Tactic/Match.lean
generated
9
stage0/src/Lean/Elab/Tactic/Match.lean
generated
|
|
@ -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
|
||||
|
||||
|
|
|
|||
4
stage0/src/Lean/Elab/Tactic/Rewrite.lean
generated
4
stage0/src/Lean/Elab/Tactic/Rewrite.lean
generated
|
|
@ -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
|
||||
|
|
|
|||
2
stage0/src/Lean/Parser/Syntax.lean
generated
2
stage0/src/Lean/Parser/Syntax.lean
generated
|
|
@ -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)
|
||||
|
|
|
|||
2
stage0/src/Lean/PrettyPrinter/Basic.lean
generated
2
stage0/src/Lean/PrettyPrinter/Basic.lean
generated
|
|
@ -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
|
||||
|
|
|
|||
2808
stage0/stdlib/Lean/Elab/BuiltinNotation.c
generated
2808
stage0/stdlib/Lean/Elab/BuiltinNotation.c
generated
File diff suppressed because it is too large
Load diff
563
stage0/stdlib/Lean/Elab/Command.c
generated
563
stage0/stdlib/Lean/Elab/Command.c
generated
File diff suppressed because it is too large
Load diff
412
stage0/stdlib/Lean/Elab/Declaration.c
generated
412
stage0/stdlib/Lean/Elab/Declaration.c
generated
|
|
@ -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);
|
||||
|
|
|
|||
212
stage0/stdlib/Lean/Elab/DefView.c
generated
212
stage0/stdlib/Lean/Elab/DefView.c
generated
|
|
@ -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 <lean/lean.h>
|
||||
#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();
|
||||
|
|
|
|||
20
stage0/stdlib/Lean/Elab/Inductive.c
generated
20
stage0/stdlib/Lean/Elab/Inductive.c
generated
|
|
@ -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);
|
||||
|
|
|
|||
58
stage0/stdlib/Lean/Elab/MutualDef.c
generated
58
stage0/stdlib/Lean/Elab/MutualDef.c
generated
|
|
@ -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();
|
||||
|
|
|
|||
60
stage0/stdlib/Lean/Elab/PreDefinition/Main.c
generated
60
stage0/stdlib/Lean/Elab/PreDefinition/Main.c
generated
|
|
@ -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();
|
||||
|
|
|
|||
16
stage0/stdlib/Lean/Elab/PreDefinition/Structural.c
generated
16
stage0/stdlib/Lean/Elab/PreDefinition/Structural.c
generated
|
|
@ -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();
|
||||
|
|
|
|||
234
stage0/stdlib/Lean/Elab/Print.c
generated
234
stage0/stdlib/Lean/Elab/Print.c
generated
|
|
@ -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);
|
||||
|
|
|
|||
194
stage0/stdlib/Lean/Elab/Structure.c
generated
194
stage0/stdlib/Lean/Elab/Structure.c
generated
|
|
@ -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 <lean/lean.h>
|
||||
#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);
|
||||
|
|
|
|||
283
stage0/stdlib/Lean/Elab/Syntax.c
generated
283
stage0/stdlib/Lean/Elab/Syntax.c
generated
|
|
@ -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();
|
||||
|
|
|
|||
60
stage0/stdlib/Lean/Elab/Tactic/Binders.c
generated
60
stage0/stdlib/Lean/Elab/Tactic/Binders.c
generated
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
30
stage0/stdlib/Lean/Elab/Tactic/Induction.c
generated
30
stage0/stdlib/Lean/Elab/Tactic/Induction.c
generated
|
|
@ -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 <lean/lean.h>
|
||||
#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();
|
||||
|
|
|
|||
6
stage0/stdlib/Lean/Elab/Tactic/Match.c
generated
6
stage0/stdlib/Lean/Elab/Tactic/Match.c
generated
|
|
@ -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 <lean/lean.h>
|
||||
#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);
|
||||
|
|
|
|||
285
stage0/stdlib/Lean/Parser/Syntax.c
generated
285
stage0/stdlib/Lean/Parser/Syntax.c
generated
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue