Documentation

Lean.Util.Recognizers

@[inline]
Instances For
    @[inline]
    Equations
    • e.app1? fName = if e.isAppOfArity fName 1 = true then some e.appArg! else none
    Instances For
      @[inline]
      Instances For
        @[inline]
        Equations
        • e.app3? fName = if e.isAppOfArity fName 3 = true then some (e.appFn!.appFn!.appArg!, e.appFn!.appArg!, e.appArg!) else none
        Instances For
          @[inline]
          Equations
          • e.app4? fName = if e.isAppOfArity fName 4 = true then some (e.appFn!.appFn!.appFn!.appArg!, e.appFn!.appFn!.appArg!, e.appFn!.appArg!, e.appArg!) else none
          Instances For
            @[inline]
            Instances For
              @[inline]
              Instances For
                @[inline]
                Instances For
                  @[inline]
                  Equations
                  • p.notNot? = match p.not? with | some p => p.not? | none => none
                  Instances For
                    @[inline]
                    Equations
                    • p.and? = p.app2? `And
                    Instances For
                      Equations
                      • e.natAdd? = e.app2? `Nat.add
                      Instances For
                        @[inline]
                        Instances For
                          Instances For
                            Instances For
                              Instances For
                                Instances For
                                  Equations
                                  Instances For

                                    Recognize α × β

                                    Equations
                                    • e.prod? = e.app2? `Prod
                                    Instances For

                                      Checks if an expression is a Name literal, and if so returns the name.

                                      Instances For