Documentation

Mathlib.Tactic.Order.CollectFacts

Facts collection for the order Tactic #

This file implements the collection of facts for the order tactic.

A structure for storing facts about variables.

Instances For
    @[reducible, inline]

    State for CollectFactsM. It contains a map that maps a type to atomic facts collected for this type.

    Instances For
      @[reducible, inline]

      Monad for the fact collection procedure.

      Instances For
        def Mathlib.Tactic.Order.addType {u : Lean.Level} (type : Q(Type u)) :

        Adds type to the state. It checks if the type has already been added up to reducible_and_instances transparency. Returns the type that is added to the state and definitionally equal (but may be not syntactically equal) to type.

        Instances For
          def Mathlib.Tactic.Order.addFact (type : Lean.Expr) (fact : AtomicFact) :

          Adds fact to the state. Assumes that type is already added by addType.

          Instances For
            partial def Mathlib.Tactic.Order.addAtom {u : Lean.Level} (type : Q(Type u)) (x : Q(ยซ$typeยป)) :

            Updates the state with the atom x. If x is โŠค or โŠฅ, adds the corresponding fact. If x is y โŠ” z, adds a fact about it, then recursively calls addAtom on y and z. Similarly for โŠ“. Assumes that type is already added by addType.

            def Mathlib.Tactic.Order.collectFactsImp (only? : Bool) (hyps : Array Lean.Expr) (negGoal : Lean.Expr) :

            Implementation for collectFacts in CollectFactsM monad.

            Instances For
              def Mathlib.Tactic.Order.collectFacts (only? : Bool) (hyps : Array Lean.Expr) (negGoal : Lean.Expr) :
              AtomM (Std.HashMap Lean.Expr (Array AtomicFact))

              Collects facts from the local context. negGoal is the negated goal, hyps is the expressions passed to the tactic using square brackets. If only? is true, we collect facts only from hyps and negGoal, otherwise we also use the local context.

              For each occurring type ฮฑ, the returned map contains an array containing all collected AtomicFacts about atoms of type ฮฑ.

              Instances For