The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V34. The tactics of Mathlib

Mathlib.Tactic.Inclusion.Core.Core

16 declarations. Mathlib docs · Source

def Inclusion.InclusionConfig.ctorIdx E1 #

Inclusion.InclusionConfig → ℕ

theorem Inclusion.InclusionConfig.mk.injEq E0 #

∀ (kernel native : Bool) (paramSettings : Lean.NameMap Lean.Expr) (families : Array Lean.Name)
  (kernel_1 native_1 : Bool) (paramSettings_1 : Lean.NameMap Lean.Expr) (families_1 : Array Lean.Name),
  ({ kernel := kernel, native := native, paramSettings := paramSettings, families := families } =
      { kernel := kernel_1, native := native_1, paramSettings := paramSettings_1, families := families_1 }) =
    (kernel = kernel_1 ∧ native = native_1 ∧ paramSettings = paramSettings_1 ∧ families = families_1)

def Inclusion.compileInclusionCheck.unsafe_1 E1 #

Lean.Expr → Lean.MetaM Inclusion.IntervalBool

theorem Inclusion.InclusionConfig.mk.inj E1 #

∀ {kernel native : Bool} {paramSettings : Lean.NameMap Lean.Expr} {families : Array Lean.Name}
  {kernel_1 native_1 : Bool} {paramSettings_1 : Lean.NameMap Lean.Expr} {families_1 : Array Lean.Name},
  { kernel := kernel, native := native, paramSettings := paramSettings, families := families } =
      { kernel := kernel_1, native := native_1, paramSettings := paramSettings_1, families := families_1 } →
    kernel = kernel_1 ∧ native = native_1 ∧ paramSettings = paramSettings_1 ∧ families = families_1

opaque Inclusion.compileInclusionCheck.unsafe_impl_2 E1 #

Lean.Expr → Lean.MetaM Inclusion.IntervalBool

structure Inclusion.InclusionConfig E1 #

Type

Configuration for the inclusion tactic.

ctor Inclusion.InclusionConfig.mk E0 #

Bool → Bool → Lean.NameMap Lean.Expr → Array Lean.Name → Inclusion.InclusionConfig

abbrev Inclusion.InclusionConfig.kernel E1 #

Inclusion.InclusionConfig → Bool

If kernel == true then skip the compiled check.

abbrev Inclusion.InclusionConfig.native E1 #

Inclusion.InclusionConfig → Bool

If native == true then use compiled computation in the proof (warning: this adds the Lean compiler to the trusted codebase).

abbrev Inclusion.InclusionConfig.paramSettings E1 #

Inclusion.InclusionConfig → Lean.NameMap Lean.Expr

A map from inclusion parameter names to their user-supplied values.

abbrev Inclusion.InclusionConfig.families E1 #

Inclusion.InclusionConfig → Array Lean.Name

The names of the enabled inclusion extension families.

def Inclusion.compileInclusionCheck E1 #

Lean.Expr → Lean.MetaM Inclusion.IntervalBool

Compile and evaluate the closed IntervalBool expression inclusionExpr.

def Inclusion.mkInclusionTrueProof E1 #

Lean.Expr → Lean.MetaM Lean.Expr

Check that inclusionExpr equals IntervalBool.true using a compiled computation, and then pass the proof term to the kernel (where it will be verified again by reflection).

def Inclusion.mkKernelInclusionTrueProof E1 #

Lean.Expr → Lean.MetaM Lean.Expr

Prove that inclusionExpr equals IntervalBool.true using kernel reduction (without any prior compiled check).

def Inclusion.mkNativeInclusionTrueProof E1 #

Lean.Expr → Lean.MetaM Lean.Expr

Use native evaluation to prove that inclusionExpr equals IntervalBool.true.

def Inclusion.inclusionCore E1 #

Lean.Expr → Inclusion.InclusionConfig → Lean.MetaM Lean.Expr

Prove goal, by constructing an exprInclusion for it and verifying that exprInclusion.inclusion evaluates to IntervalBool.true.