AFTD Auto-Formalizing Theoretical Domains

FieldSpecification

structureimported Lean

The structure FieldSpecification is defined to have the following content: - A type Field whose elements are the constituent fields of the theory. - For every field f in Field, a type PositionLabel f whose elements label the different position operators associated with the field f. For example, - For f a *real-scalar field*, PositionLabel f will have a unique element. - For f a *complex-scalar field*, PositionLabel f will have two elements, one for the field operator and one for its conjugate. - For f a *Dirac fermion*, PositionLabel f will have eight elements, one for each Lorentz index of the field and its conjugate. - For f a *Weyl fermion*, PositionLabel f will have four elements, one for each Lorentz index of the field and its conjugate. - For every field f in Field, a type AsymptoticLabel f whose elements label the different types of incoming asymptotic field operators associated with the field f (this also matches the types of outgoing asymptotic field operators). For example, - For f a *real-scalar field*, AsymptoticLabel f will have a unique element. - For f a *complex-scalar field*, AsymptoticLabel f will have two elements, one for the field operator and one for its conjugate. - For f a *Dirac fermion*, AsymptoticLabel f will have four elements, two for each spin. - For f a *Weyl fermion*, AsymptoticLabel f will have two elements, one for each spin. - For each field f in Field, a field statistic statistic f which classifies f as either bosonic or fermionic.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
structure FieldSpecification
Defined in
Physlib, `FieldSpecification`
Lean proof
By Joseph Tooby-Smith, from github.com/leanprover-community/physlib at e411c6e89692 (Copyright (c) 2025 Joseph Tooby-Smith. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.34.1.
Verified
10 Oct 2026
Axioms
none listed
Built on 22
Used by 76

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
/-- The structure `FieldSpecification` is defined to have the following content: - A type `Field` whose elements are the constituent fields of the theory. - For every field `f` in `Field`, a type `PositionLabel f` whose elements label the different position operators associated with the field `f`. For example, - For `f` a *real-scalar field*, `PositionLabel f` will have a unique element. - For `f` a *complex-scalar field*, `PositionLabel f` will have two elements, one for the field operator and one for its conjugate. - For `f` a *Dirac fermion*, `PositionLabel f` will have eight elements, one for each Lorentz index of the field and its conjugate. - For `f` a *Weyl fermion*, `PositionLabel f` will have four elements, one for each Lorentz index of the field and its conjugate. - For every field `f` in `Field`, a type `AsymptoticLabel f` whose elements label the different types of incoming asymptotic field operators associated with the field `f` (this also matches the types of outgoing asymptotic field operators). For example, - For `f` a *real-scalar field*, `AsymptoticLabel f` will have a unique element. - For `f` a *complex-scalar field*, `AsymptoticLabel f` will have two elements, one for the field operator and one for its conjugate. - For `f` a *Dirac fermion*, `AsymptoticLabel f` will have four elements, two for each spin. - For `f` a *Weyl fermion*, `AsymptoticLabel f` will have two elements, one for each spin. - For each field `f` in `Field`, a field statistic `statistic f` which classifies `f` as either `bosonic` or `fermionic`. -/
structure FieldSpecification where
  /-- A type whose elements are the constituent fields of the theory. -/
  Field : Type
  /-- For every field `f` in `Field`, the type `PositionLabel f` has elements that label the
    different position operators associated with the field `f`. -/
  PositionLabel : Field → Type
  /-- For every field `f` in `Field`, the type `AsymptoticLabel f` has elements that label
    the different asymptotic based field operators associated with the field `f`. -/
  AsymptoticLabel : Field → Type
  /-- For every field `f` in `Field`, the field statistic `statistic f` classifies `f` as either
    `bosonic` or `fermionic`. -/
  statistic : Field → FieldStatistic
See it in the graphDiscuss this resultChallenge it