FormalConjecturesForMathlib/Lean/Elab/InfoTree/Util.lean

GitHub source file

Explanation legend Lean4 Domain Explanation Language (L4DEL)

L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.

L4DEL
Lean4 Domain Explanation Language

Credit: The upstream authors and contributors retain credit for the project and mathematics. lean4-explainer only renders their pinned source and adds the separately disclosed explanation layer.

Project sources: Pinned project documentation, Formal Conjectures paper, arXiv v1

1 declarations, 0 contain sorry, 0 declared as axioms

InfoTree utils

This file contains a few functions that are useful for traversing infotrees.

Imports (1)
Imported by 2 files
  1. def Lean.Elab.InfoTree.visitStateOf Visit nodes in an infotree, where state is set only within a single branch line 33 source

    Source documentation

    Visit nodes in an infotree, where state is set only within a single branch.

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: Monad, MonadStateOf, Lean.Elab.ContextInfo, Lean.Elab.Info, Lean.PersistentArray, Lean.Elab.InfoTree, Unit

    Proof uses: Option.none

    1 instances, coercions and auxiliary constants left out.

    partial def Lean.Elab.InfoTree.visitStateOf [MonadStateOf σ m]
        (visit : ContextInfo → Info → (children : PersistentArray InfoTree) → m Unit) :
        InfoTree → m Unit :=
    …