Documentation

Mathlib.Tactic.FunProp.Theorems

fun_prop environment extensions storing theorems for fun_prop #

Tag for one of the 5 basic lambda theorems, that also hold extra data for composition theorem

Instances For

    Tag for one of the 5 basic lambda theorems

    Instances For

      Decides whether f is a function corresponding to one of the lambda theorems.

      Instances For

        Structure holding information about lambda theorem.

        Instances For

          Collection of lambda theorems

          Instances For

            Return proof of lambda theorem

            Instances For
              @[reducible, inline]

              Environment extension storing lambda theorems.

              Instances For

                Environment extension storing all lambda theorems.

                Get lambda theorems for particular function property funPropName.

                Instances For

                  Function theorems are stated in uncurried or compositional form.

                  uncurried

                  theorem Continuous_add : Continuous (fun x ↦ x.1 + x.2)
                  

                  compositional

                  theorem Continuous_add (hf : Continuous f) (hg : Continuous g) : Continuous (fun x ↦ (f x) + (g x))
                  
                  Instances For
                    @[implicit_reducible]

                    TheoremForm to string

                    Gives the theorem form using the result of FunctionData.decomposition.

                    Note that this returns TheoremForm.comp even when the decomposition failed (usually due to dependent types). This means that the theorem will be applied directly without trying to write the goal as a composition.

                    Instances For

                      theorem about specific function (either declared constant or free variable)

                      • funPropName : Lean.Name

                        function property name

                      • thmOrigin : Origin

                        theorem name

                      • funOrigin : Origin

                        function name

                      • mainArgs : Array Nat

                        array of argument indices about which this theorem is about

                      • appliedArgs : Nat

                        total number of arguments applied to the function

                      • priority : Nat

                        priority

                      • form of the theorem, see documentation of TheoremForm

                      Instances For
                        Instances For

                          return proof of function theorem

                          Instances For
                            @[reducible, inline]
                            Instances For

                              Extension storing all function theorems.

                              @[reducible, inline]

                              Extensions for transition or morphism theorems

                              Instances For

                                Environment extension for transition theorems.

                                Get transition theorems applicable to e.

                                For example calling on e equal to Continuous f might return theorems implying continuity from linearity over finite-dimensional spaces or differentiability.

                                Instances For

                                  Environment extension for morphism theorems.

                                  Get morphism theorems applicable to e.

                                  For example calling on e equal to Continuous f for f : X→L[ℝ] Y would return theorem inferring continuity from the bundled morphism.

                                  Instances For

                                    There are four types of theorems:

                                    • lam - theorem about basic lambda calculus terms
                                    • function - theorem about a specific function(declared or free variable) in specific arguments
                                    • mor - special theorems talking about bundled morphisms/DFunLike.coe
                                    • transition - theorems inferring one function property from another

                                    Examples:

                                    Instances For

                                      For a theorem declaration declName return fun_prop theorem. It correctly detects which type of theorem it is.

                                      Instances For

                                        Register theorem declName with fun_prop.

                                        Instances For