/-
Copyright (c) 2023 Kyle Miller. All rights reserved.
Released Apache2 license as described inthe file LICENSE.
Authors: Kyle Miller
-/
module
public import Lean.Expr
public import Mathlib.Data.Set.CoeSort
/-!
# Additional Expr recognizers needing theory imports
-/
public section
namespace Lean.Expr
/-- If `e` is a coercion of a set to a type, return the set.
Succeeds either for `Set.Elem s` terms or `{x // x ∈ s}` subtype terms. -/
def coeTypeSet? (e : Expr) : Option Expr := do
if e.isAppOfArity ``Set.Elem 2 then
return e.appArg!
else if e.isAppOfArity ``Subtype 2 then
let .lam _ _ body _ := e.appArg! | failure
guard <| body.isAppOfArity ``Membership.mem 5
let #[_, _, inst, .bvar 0, s] :theoremAEMeasurable.lintegral_prod_left [Finiteν [Finiteμ f:α→β→ℝ0∞java.lang.StringIndexOutOfBoundsException: Index 83 out of bounds for length 83
guard <| inst.isAppOfArity ``Set.instMembership 1
return s
else
failure
end Lean.Expr
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.3Angebot
¤
*Eine klare Vorstellung vom Zielzustand