Documentation

Lean.Elab.BuiltinNotation

Equations
    Instances For
      Equations
        Instances For
          Equations
            Instances For
              Equations
                Instances For
                  Equations
                    Instances For
                      Equations
                        Instances For
                          Equations
                            Instances For
                              Equations
                                Instances For
                                  Equations
                                    Instances For
                                      Equations
                                        Instances For

                                          Return syntax Prod.mk elems[0] (Prod.mk elems[1] ... (Prod.mk elems[elems.size - 2] elems[elems.size - 1])))

                                          Equations
                                            Instances For
                                              partial def Lean.Elab.Term.mkPairs.loop (elems : Array Term) (i : Nat) (acc : Term) :

                                              Return syntax PProd.mk elems[0] (PProd.mk elems[1] ... (PProd.mk elems[elems.size - 2] elems[elems.size - 1])))

                                              Equations
                                                Instances For
                                                  partial def Lean.Elab.Term.mkPPairs.loop (elems : Array Term) (i : Nat) (acc : Term) :

                                                  Return syntax MProd.mk elems[0] (MProd.mk elems[1] ... (MProd.mk elems[elems.size - 2] elems[elems.size - 1])))

                                                  Equations
                                                    Instances For
                                                      partial def Lean.Elab.Term.mkMPairs.loop (elems : Array Term) (i : Nat) (acc : Term) :

                                                      Return some if succeeded expanding · notation occurring in the given syntax. Otherwise, return none. Examples:

                                                      • · + 1 => fun x => x + 1
                                                      • f · · b => fun x1 x2 => f x1 x2 b
                                                      Equations
                                                        Instances For

                                                          Auxiliary function for expanding the · notation. The extra state Array Syntax contains the new binder names. If stx is a ·, we create a fresh identifier, store it in the extra state, and return it. Otherwise, we just return stx.

                                                          Helper method for elaborating terms such as (.+.) where a constant name is expected. This method is usually used to implement tactics that take function names as arguments (e.g., simp).

                                                          Equations
                                                            Instances For
                                                              Equations
                                                                Instances For
                                                                  Equations
                                                                    Instances For
                                                                      Equations
                                                                        Instances For
                                                                          Equations
                                                                            Instances For
                                                                              Equations
                                                                                Instances For
                                                                                  Equations
                                                                                    Instances For

                                                                                      Elaborator for by_elab.

                                                                                      Equations
                                                                                        Instances For
                                                                                          Equations
                                                                                            Instances For
                                                                                              Equations
                                                                                                Instances For