| [Elab.info] | |
| • [Command] @ ⟨53, 0⟩-⟨53, 31⟩ @ Lean.Elab.Command.elabSetOption | |
| • [Completion] (Command.set_option "set_option" `trace.Elab.info []) @ ⟨53, 0⟩-⟨53, 26⟩ | |
| • [Option] trace.Elab.info @ ⟨53, 11⟩-⟨53, 26⟩ | |
| • [CustomInfo(Lean.Elab.LinterInfoGroup)] | |
| [Elab.info] | |
| • [Command] @ ⟨57, 0⟩-⟨57, 43⟩ @ Lean.Elab.Command.elabDeclaration | |
| • [Term] Nat : Type @ ⟨57, 17⟩-⟨57, 20⟩ @ Lean.Elab.Term.elabIdent | |
| • [Completion-Id] Nat : some Sort.{?_uniq} @ ⟨57, 17⟩-⟨57, 20⟩ | |
| • [Term] Nat : Type @ ⟨57, 17⟩-⟨57, 20⟩ | |
| • [Term] abc (isBinder := true) : Nat @ ⟨57, 7⟩-⟨57, 10⟩ | |
| • [Term] Nat : Type @ ⟨57, 17⟩-⟨57, 20⟩ @ Lean.Elab.Term.elabIdent | |
| • [Completion-Id] Nat : some Sort.{?_uniq} @ ⟨57, 17⟩-⟨57, 20⟩ | |
| • [Term] Nat : Type @ ⟨57, 17⟩-⟨57, 20⟩ | |
| • [Term] foo (isBinder := true) : Nat @ ⟨57, 11⟩-⟨57, 14⟩ | |
| • [Term] Foo : Type @ ⟨57, 24⟩-⟨57, 27⟩ @ Lean.Elab.Term.elabIdent | |
| • [Completion-Id] Foo : some Sort.{?_uniq} @ ⟨57, 24⟩-⟨57, 27⟩ | |
| • [Term] Foo : Type @ ⟨57, 24⟩-⟨57, 27⟩ | |
| • [CustomInfo(Lean.Elab.Term.DeclValueInfo)] | |
| • [Term] abc (isBinder := true) : Nat @ ⟨57, 7⟩-⟨57, 10⟩ | |
| • [Term] foo (isBinder := true) : Nat @ ⟨57, 11⟩-⟨57, 14⟩ | |
| • [CustomInfo(Lean.Elab.Term.BodyInfo)] | |
| • [Term] { abc := abc, foo := foo } : Foo @ ⟨57, 31⟩-⟨57, 43⟩ @ Lean.Elab.Term.elabChoice | |
| • [Term] { abc := abc, foo := foo } : Foo @ ⟨57, 31⟩-⟨57, 43⟩ @ Lean.Elab.Term.StructInst.expandStructInstFields | |
| • [MacroExpansion] | |
| { abc, foo } | |
| ===> | |
| { abc := abc, foo := foo } | |
| • [Term] { abc := abc, foo := foo } : Foo @ ⟨57, 31⟩-⟨57, 43⟩ @ Lean.Elab.Term.StructInst.elabStructInst | |
| • [Completion] `abc @ ⟨57, 33⟩-⟨57, 36⟩ | |
| • [Completion] `foo @ ⟨57, 38⟩-⟨57, 41⟩ | |
| • [Term] abc : Nat @ ⟨57, 33⟩-⟨57, 36⟩ @ Lean.Elab.Term.elabIdent | |
| • [Completion-Id] abc : some Nat @ ⟨57, 33⟩-⟨57, 36⟩ | |
| • [Term] abc : Nat @ ⟨57, 33⟩-⟨57, 36⟩ | |
| • [Field] abc : Nat := abc @ ⟨57, 33⟩-⟨57, 36⟩ | |
| • [Term] foo : Nat @ ⟨57, 38⟩-⟨57, 41⟩ @ Lean.Elab.Term.elabIdent | |
| • [Completion-Id] foo : some Nat @ ⟨57, 38⟩-⟨57, 41⟩ | |
| • [Term] foo : Nat @ ⟨57, 38⟩-⟨57, 41⟩ | |
| • [Field] foo : Nat := foo @ ⟨57, 38⟩-⟨57, 41⟩ | |
| • [ChoiceResolution] alternative 1 of 2 (Lean.Parser.Term.structInst) @ ⟨57, 31⟩-⟨57, 43⟩ | |
| • [Term] x (isBinder := true) : Nat → Nat → Foo @ ⟨57, 4⟩-⟨57, 5⟩ | |
| • [Term] x (isBinder := true) : Nat → Nat → Foo @ ⟨57, 4⟩-⟨57, 5⟩ | |
| • [CustomInfo(Lean.Elab.LinterInfoGroup)] | |
| 0 : Nat | |
| [Elab.info] | |
| • [Command] @ ⟨59, 0⟩-⟨59, 21⟩ @ Lean.Elab.Command.elabCheck | |
| • [Term] 0 : Nat @ ⟨59, 7⟩-⟨59, 21⟩ @ Lean.Elab.Term.elabTypeAscription | |
| • [Term] Nat : Type @ ⟨59, 17⟩-⟨59, 20⟩ @ Lean.Elab.Term.elabIdent | |
| • [Completion-Id] Nat : some Sort.{?_uniq} @ ⟨59, 17⟩-⟨59, 20⟩ | |
| • [Term] Nat : Type @ ⟨59, 17⟩-⟨59, 20⟩ | |
| • [Term] 0 : Nat @ ⟨59, 8⟩-⟨59, 14⟩ @ Lean.Elab.Term.elabChoice | |
| • [Term] 0 : Nat @ ⟨59, 8⟩-⟨59, 14⟩ @ elabTermA | |
| • [ChoiceResolution] alternative 1 of 2 (termA) @ ⟨59, 8⟩-⟨59, 14⟩ | |
| • [CustomInfo(Lean.Elab.LinterInfoGroup)] | |
| [Elab.info] | |
| • [Command] @ ⟨62, 0⟩-⟨63, 20⟩ @ Lean.Elab.Tactic.GuardMsgs.elabGuardMsgs | |
| • [Command] @ ⟨63, 0⟩-⟨63, 20⟩ @ Lean.Elab.Command.elabCheck | |
| • [Term] sorry : Nat @ ⟨63, 7⟩-⟨63, 20⟩ @ Lean.Elab.Term.elabTypeAscription | |
| • [Term] Nat : Type @ ⟨63, 16⟩-⟨63, 19⟩ @ Lean.Elab.Term.elabIdent | |
| • [Completion-Id] Nat : some Sort.{?_uniq} @ ⟨63, 16⟩-⟨63, 19⟩ | |
| • [Term] Nat : Type @ ⟨63, 16⟩-⟨63, 19⟩ | |
| • [Term] sorry : Nat @ ⟨63, 8⟩-⟨63, 13⟩ @ Lean.Elab.Term.elabChoice | |
| • [Choice] @ ⟨63, 8⟩-⟨63, 13⟩ | |
| • [PartialTerm] @ ⟨63, 8⟩-⟨63, 13⟩ | |
| • [Term] 2 : Nat @ ⟨63, 8⟩-⟨63, 13⟩ @ elabAmbB | |
| • [PartialTerm] @ ⟨63, 8⟩-⟨63, 13⟩ | |
| • [Term] 1 : Nat @ ⟨63, 8⟩-⟨63, 13⟩ @ elabAmbA | |
| • [CustomInfo(Lean.Elab.LinterInfoGroup)] | |
| [Elab.info] | |
| • [Command] @ ⟨65, 0⟩-⟨65, 25⟩ @ Lean.Elab.Command.elabDeclaration | |
| • [Term] Nat : Type @ ⟨65, 10⟩-⟨65, 13⟩ @ Lean.Elab.Term.elabIdent | |
| • [Completion-Id] Nat : some Sort.{?_uniq} @ ⟨65, 10⟩-⟨65, 13⟩ | |
| • [Term] Nat : Type @ ⟨65, 10⟩-⟨65, 13⟩ | |
| • [CustomInfo(Lean.Elab.Term.DeclValueInfo)] | |
| • [CustomInfo(Lean.Elab.Term.BodyInfo)] | |
| • [Tactic] @ ⟨65, 17⟩-⟨65, 25⟩ | |
| (Term.byTactic "by" (Tactic.tacticSeq (Tactic.tacticSeq1Indented [(choice (tacB "mytac") (tacA "mytac"))]))) | |
| before | |
| ⊢ Nat | |
| after no goals | |
| • [Tactic] @ ⟨65, 17⟩-⟨65, 19⟩ | |
| "by" | |
| before | |
| ⊢ Nat | |
| after no goals | |
| • [Tactic] @ ⟨65, 20⟩-⟨65, 25⟩ @ Lean.Elab.Tactic.evalTacticSeq | |
| (Tactic.tacticSeq (Tactic.tacticSeq1Indented [(choice (tacB "mytac") (tacA "mytac"))])) | |
| before | |
| ⊢ Nat | |
| after no goals | |
| • [Tactic] @ ⟨65, 20⟩-⟨65, 25⟩ @ Lean.Elab.Tactic.evalTacticSeq1Indented | |
| (Tactic.tacticSeq1Indented [(choice (tacB "mytac") (tacA "mytac"))]) | |
| before | |
| ⊢ Nat | |
| after no goals | |
| • [Tactic] @ ⟨65, 20⟩-⟨65, 25⟩ @ Lean.Elab.Tactic.evalChoice | |
| (choice (tacB "mytac") (tacA "mytac")) | |
| before | |
| ⊢ Nat | |
| after no goals | |
| • [Tactic] @ ⟨65, 20⟩-⟨65, 25⟩ @ _aux_elab_choiceResolutionInfo___macroRules_tacB_1 | |
| (tacB "mytac") | |
| before | |
| ⊢ Nat | |
| after no goals | |
| • [Tactic] @ ⟨65, 20⟩†-⟨65, 25⟩† @ Lean.Elab.Tactic.evalExact | |
| (Tactic.exact "exact" (num "42")) | |
| before | |
| ⊢ Nat | |
| after no goals | |
| • [Term] 42 : Nat @ ⟨65, 20⟩†-⟨65, 25⟩† @ Lean.Elab.Term.elabNumLit | |
| • [ChoiceResolution] alternative 0 of 2 (tacB) @ ⟨65, 20⟩-⟨65, 25⟩ | |
| • [Term] _example (isBinder := true) : Nat @ ⟨65, 0⟩-⟨65, 7⟩ | |
| • [Term] _example (isBinder := true) : Nat @ ⟨65, 0⟩†!-⟨65, 7⟩†! | |
| • [CustomInfo(Lean.Elab.LinterInfoGroup)] | |
| "cmdB" | |
| [Elab.info] | |
| • [Command] @ ⟨67, 0⟩-⟨67, 5⟩ @ Lean.Elab.Command.elabChoice | |
| • [Command] @ ⟨67, 0⟩-⟨67, 5⟩ @ _aux_elab_choiceResolutionInfo___macroRules_cmdB_1 | |
| • [MacroExpansion] | |
| mycmd | |
| -- Pattern-level choice node: the pattern elaborator rewrites the alternatives of the `choice` | |
| -- node for the overloaded `:::` notation into explicit constructor applications before the | |
| -- elaborator resolves it. The recorded alternative index remains valid for the original | |
| -- `choice` node. | |
| ===> | |
| #eval "cmdB" | |
| • [Command] @ ⟨67, 0⟩†-⟨67, 5⟩† @ Lean.Elab.Command.elabEval | |
| • [Term] "cmdB" : String @ ⟨67, 0⟩†-⟨67, 5⟩† @ Lean.Elab.Term.elabStrLit | |
| • [Term] Lean.MessageData.ofExpr | |
| (Lean.toExpr "cmdB") : Lean.MessageData @ ⟨67, 0⟩†-⟨67, 5⟩† @ Lean.Elab.Term.elabSyntheticHole | |
| • [Term] Lean.MessageData : Type @ ⟨67, 0⟩†-⟨67, 5⟩† @ Lean.Elab.Term.elabHole | |
| • [CustomInfo(Lean.Elab.Term.DeclValueInfo)] | |
| • [CustomInfo(Lean.Elab.Term.BodyInfo)] | |
| • [Term] Lean.MessageData.ofExpr | |
| (Lean.toExpr "cmdB") : Lean.MessageData @ ⟨67, 0⟩†-⟨67, 5⟩† @ Lean.Elab.Term.elabSyntheticHole | |
| • [Term] _eval (isBinder := true) : Lean.MessageData @ ⟨1, 0⟩†-⟨1, 0⟩† | |
| • [Term] _eval (isBinder := true) : Lean.MessageData @ ⟨1, 0⟩†-⟨1, 0⟩† | |
| • [ChoiceResolution] alternative 0 of 2 (cmdB) @ ⟨67, 0⟩-⟨67, 5⟩ | |
| • [CustomInfo(Lean.Elab.LinterInfoGroup)] | |
| [Elab.info] | |
| • [Command] @ ⟨73, 0⟩-⟨76, 13⟩ @ Lean.Elab.Command.elabDeclaration | |
| • [Term] List Nat : Type @ ⟨73, 16⟩-⟨73, 24⟩ @ Lean.Elab.Term.elabApp | |
| • [Completion-Id] List : some Sort.{?_uniq} @ ⟨73, 16⟩-⟨73, 20⟩ | |
| • [Term] List : Type → Type @ ⟨73, 16⟩-⟨73, 20⟩ | |
| • [Term] Nat : Type @ ⟨73, 21⟩-⟨73, 24⟩ @ Lean.Elab.Term.elabIdent | |
| • [Completion-Id] Nat : some Type.{?_uniq} @ ⟨73, 21⟩-⟨73, 24⟩ | |
| • [Term] Nat : Type @ ⟨73, 21⟩-⟨73, 24⟩ | |
| • [Term] xs (isBinder := true) : List Nat @ ⟨73, 11⟩-⟨73, 13⟩ | |
| • [Term] Option Nat : Type @ ⟨73, 28⟩-⟨73, 38⟩ @ Lean.Elab.Term.elabApp | |
| • [Completion-Id] Option : some Sort.{?_uniq} @ ⟨73, 28⟩-⟨73, 34⟩ | |
| • [Term] Option : Type → Type @ ⟨73, 28⟩-⟨73, 34⟩ | |
| • [Term] Nat : Type @ ⟨73, 35⟩-⟨73, 38⟩ @ Lean.Elab.Term.elabIdent | |
| • [Completion-Id] Nat : some Type.{?_uniq} @ ⟨73, 35⟩-⟨73, 38⟩ | |
| • [Term] Nat : Type @ ⟨73, 35⟩-⟨73, 38⟩ | |
| • [CustomInfo(Lean.Elab.Term.DeclValueInfo)] | |
| • [Term] xs (isBinder := true) : List Nat @ ⟨73, 11⟩-⟨73, 13⟩ | |
| • [CustomInfo(Lean.Elab.Term.BodyInfo)] | |
| • [PartialTerm] @ ⟨74, 2⟩-⟨76, 13⟩ @ Lean.Elab.Term.Quotation.elabMatchSyntax | |
| • [Term] match xs with | |
| | x ::: tail => some x | |
| | x => none : Option Nat @ ⟨74, 2⟩-⟨76, 13⟩ @ Lean.Elab.Term.elabMatch | |
| • [Term] xs : List Nat @ ⟨74, 8⟩-⟨74, 10⟩ @ Lean.Elab.Term.elabIdent | |
| • [Completion-Id] xs : none @ ⟨74, 8⟩-⟨74, 10⟩ | |
| • [Term] xs : List Nat @ ⟨74, 8⟩-⟨74, 10⟩ | |
| • [Term] xs : List Nat @ ⟨74, 8⟩-⟨74, 10⟩ @ Lean.Elab.Term.elabIdent | |
| • [Completion-Id] xs : none @ ⟨74, 8⟩-⟨74, 10⟩ | |
| • [Term] xs : List Nat @ ⟨74, 8⟩-⟨74, 10⟩ | |
| • [Completion-Id] List.cons✝ : none @ ⟨75, 4⟩†-⟨75, 11⟩† | |
| • [Term] @List.cons : {α : Type ?u} → α → List α → List α @ ⟨75, 4⟩†-⟨75, 11⟩† | |
| • [Completion-Id] x : none @ ⟨75, 4⟩-⟨75, 5⟩ | |
| • [Completion-Id] MySeq.cons✝ : none @ ⟨75, 4⟩†-⟨75, 11⟩† | |
| • [Term] MySeq.cons : Nat → MySeq → MySeq @ ⟨75, 4⟩†-⟨75, 11⟩† | |
| • [Completion-Id] x : none @ ⟨75, 4⟩-⟨75, 5⟩ | |
| • [Completion-Id] List.cons✝ : some List.{0} Nat @ ⟨75, 4⟩†-⟨75, 11⟩† | |
| • [Completion-Id] x : some [mdata _patWithRef: ?_uniq] @ ⟨75, 4⟩-⟨75, 5⟩ | |
| • [ChoiceResolution] alternative 0 of 2 (Lean.Parser.Term.app) @ ⟨75, 4⟩†-⟨75, 11⟩† | |
| • [Term] x ::: tail✝ : List Nat @ ⟨75, 4⟩†-⟨75, 11⟩† | |
| • [Term] Nat : Type @ ⟨75, 4⟩†-⟨75, 11⟩† | |
| • [Term] x (isBinder := true) : Nat @ ⟨75, 4⟩-⟨75, 5⟩ | |
| • [Term] tail✝ (isBinder := true) : List Nat @ ⟨75, 10⟩†-⟨75, 11⟩† | |
| • [Term] some x : Option Nat @ ⟨75, 15⟩-⟨75, 21⟩ @ Lean.Elab.Term.elabApp | |
| • [Completion-Id] some : some Option.{0} Nat @ ⟨75, 15⟩-⟨75, 19⟩ | |
| • [Term] @some : {α : Type} → α → Option α @ ⟨75, 15⟩-⟨75, 19⟩ | |
| • [Term] x : Nat @ ⟨75, 20⟩-⟨75, 21⟩ @ Lean.Elab.Term.elabIdent | |
| • [Completion-Id] x : some ?_uniq @ ⟨75, 20⟩-⟨75, 21⟩ | |
| • [Term] x : Nat @ ⟨75, 20⟩-⟨75, 21⟩ | |
| • [Term] x✝ (isBinder := true) : List Nat @ ⟨76, 4⟩†-⟨76, 5⟩† | |
| • [Term] none : Option Nat @ ⟨76, 9⟩-⟨76, 13⟩ @ Lean.Elab.Term.elabIdent | |
| • [Completion-Id] none : some Option.{0} Nat @ ⟨76, 9⟩-⟨76, 13⟩ | |
| • [Term] @none : {α : Type} → Option α @ ⟨76, 9⟩-⟨76, 13⟩ | |
| • [Term] head? (isBinder := true) : List Nat → Option Nat @ ⟨73, 4⟩-⟨73, 9⟩ | |
| • [Term] head? (isBinder := true) : List Nat → Option Nat @ ⟨73, 4⟩-⟨73, 9⟩ | |
| • [CustomInfo(Lean.Elab.LinterInfoGroup)] | |
| [Elab.info] | |
| • [Command] @ ⟨82, 0⟩-⟨84, 29⟩ @ Lean.Elab.Command.elabDeclaration | |
| • [Term] Foo : Type @ ⟨82, 12⟩-⟨82, 15⟩ @ Lean.Elab.Term.elabIdent | |
| • [Completion-Id] Foo : some Sort.{?_uniq} @ ⟨82, 12⟩-⟨82, 15⟩ | |
| • [Term] Foo : Type @ ⟨82, 12⟩-⟨82, 15⟩ | |
| • [Term] v (isBinder := true) : Foo @ ⟨82, 8⟩-⟨82, 9⟩ | |
| • [Term] Nat : Type @ ⟨82, 19⟩-⟨82, 22⟩ @ Lean.Elab.Term.elabIdent | |
| • [Completion-Id] Nat : some Sort.{?_uniq} @ ⟨82, 19⟩-⟨82, 22⟩ | |
| • [Term] Nat : Type @ ⟨82, 19⟩-⟨82, 22⟩ | |
| • [CustomInfo(Lean.Elab.Term.DeclValueInfo)] | |
| • [Term] v (isBinder := true) : Foo @ ⟨82, 8⟩-⟨82, 9⟩ | |
| • [CustomInfo(Lean.Elab.Term.BodyInfo)] | |
| • [PartialTerm] @ ⟨83, 2⟩-⟨84, 29⟩ @ Lean.Elab.Term.Quotation.elabMatchSyntax | |
| • [Term] match v with | |
| | { abc := abc, foo := foo } => abc + foo : Nat @ ⟨83, 2⟩-⟨84, 29⟩ @ Lean.Elab.Term.elabMatch | |
| • [Term] v : Foo @ ⟨83, 8⟩-⟨83, 9⟩ @ Lean.Elab.Term.elabIdent | |
| • [Completion-Id] v : none @ ⟨83, 8⟩-⟨83, 9⟩ | |
| • [Term] v : Foo @ ⟨83, 8⟩-⟨83, 9⟩ | |
| • [Term] v : Foo @ ⟨83, 8⟩-⟨83, 9⟩ @ Lean.Elab.Term.elabIdent | |
| • [Completion-Id] v : none @ ⟨83, 8⟩-⟨83, 9⟩ | |
| • [Term] v : Foo @ ⟨83, 8⟩-⟨83, 9⟩ | |
| • [Completion-Id] abc : none @ ⟨84, 6⟩-⟨84, 9⟩ | |
| • [Completion-Id] foo : none @ ⟨84, 11⟩-⟨84, 14⟩ | |
| • [ChoiceResolution] alternative 1 of 2 (Lean.Parser.Term.structInst) @ ⟨84, 4⟩†-⟨84, 16⟩ | |
| • [Completion] `abc @ ⟨84, 6⟩-⟨84, 9⟩ | |
| • [Completion] `foo @ ⟨84, 11⟩-⟨84, 14⟩ | |
| • [Completion-Id] abc : some Nat @ ⟨84, 6⟩-⟨84, 9⟩ | |
| • [Field] abc : Nat := abc @ ⟨84, 6⟩-⟨84, 9⟩ | |
| • [Completion-Id] foo : some Nat @ ⟨84, 11⟩-⟨84, 14⟩ | |
| • [Field] foo : Nat := foo @ ⟨84, 11⟩-⟨84, 14⟩ | |
| • [Term] { abc := abc, foo := foo } : Foo @ ⟨84, 4⟩†-⟨84, 16⟩† | |
| • [Term] abc (isBinder := true) : Nat @ ⟨84, 6⟩-⟨84, 9⟩ | |
| • [Term] foo (isBinder := true) : Nat @ ⟨84, 11⟩-⟨84, 14⟩ | |
| • [Term] abc + foo : Nat @ ⟨84, 20⟩-⟨84, 29⟩ @ «_aux_Init_Notation___macroRules_term_+__2» | |
| • [MacroExpansion] | |
| abc + foo | |
| ===> | |
| binop% HAdd.hAdd✝ abc foo | |
| • [Term] abc + foo : Nat @ ⟨84, 20⟩†-⟨84, 29⟩† @ Lean.Elab.Term.Op.elabBinOp | |
| • [Term] abc + foo : Nat @ ⟨84, 20⟩†-⟨84, 29⟩† | |
| • [Completion-Id] HAdd.hAdd✝ : none @ ⟨84, 20⟩†-⟨84, 29⟩† | |
| • [Term] abc : Nat @ ⟨84, 20⟩-⟨84, 23⟩ @ Lean.Elab.Term.elabIdent | |
| • [Completion-Id] abc : none @ ⟨84, 20⟩-⟨84, 23⟩ | |
| • [Term] abc : Nat @ ⟨84, 20⟩-⟨84, 23⟩ | |
| • [Term] foo : Nat @ ⟨84, 26⟩-⟨84, 29⟩ @ Lean.Elab.Term.elabIdent | |
| • [Completion-Id] foo : none @ ⟨84, 26⟩-⟨84, 29⟩ | |
| • [Term] foo : Nat @ ⟨84, 26⟩-⟨84, 29⟩ | |
| • [Term] y' (isBinder := true) : Foo → Nat @ ⟨82, 4⟩-⟨82, 6⟩ | |
| • [Term] y' (isBinder := true) : Foo → Nat @ ⟨82, 4⟩-⟨82, 6⟩ | |
| • [CustomInfo(Lean.Elab.LinterInfoGroup)] | |
| [Elab.info] | |
| • [Command] @ ⟨85, 0⟩-⟨85, 0⟩ @ Lean.Elab.Command.elabEoi | |
| • [CustomInfo(Lean.Elab.LinterInfoGroup)] |