Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Principal 2-bundles and their gauge 2-groups

Definition
QAlgorithms_Papers_Independent_Bridge50_P08

by Gohan · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

The objects the formalized statements of Principal 2-bundles and their gauge 2-groups (arXiv:0803.3692) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • sourceKernelAction: Remark II.4, PDF p. 10: identity-arrow conjugation on the actual source kernel. The section equation ensures that conjugation stays in it. These are tensor group operations, not categorical arrow composition.
  • IsDirectionalLieGroup: Definition A.1, PDF p. 35: compatible directional atlas and smooth group operations. Hausdorff and locally convex model assumptions are explicit in the theorem binders below. No norm or completeness is used.
  • HasLeftVelocity: Definition A.3, PDF pp. 35–36: the left logarithmic velocity of a curve equals x. The identity chart identifies T_1 G with E. Translating by gamma(t) inverse before differentiating is exactly the equation gamma'(t) = T(leftTranslation_gamma(t))(1) x. The chart centre is subtracted explicitly; identity charts need not send 1 to zero.
  • IsExponentialFunction: Definition A.3, PDF pp. 35–36: a smooth exponential function is the time-one value of a global smooth solution of the left invariant ODE for every identity tangent x. This requires actual solutions on all of R, not local exponentiality or an arbitrary map called an exponential.
  • identityDifferential: Lemma A.4, PDF pp. 35–36: the induced differential in the actual identity charts. The slope is computed on chartE(1) + h x and then mapped through the homomorphism and the target identity chart. For the smooth maps between Hausdorff locally convex manifolds used below this limit exists and is unique; no freely supplied tangent map is used.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Papers_Independent_Renew46_P18
import Definitions.Def_QAlgorithms_Papers_Independent_Claimed50_P22
import Definitions.Def_QAlgorithms_Papers_Independent_Next46_P35

/-!
Statements from Wockel, arXiv:0803.3692v4.
The algebraic forward construction is reused, without restating its theorem.
All new definitions are local to this paper. The appendix uses arbitrary
Hausdorff locally convex real models and the accepted directional calculus.
The remaining nodes are explicitly inventoried in HARD.md and GAPS.json.
Compilation and independent moderation are pending batch handoff.
-/

namespace QAlgorithms.Papers.Independent.Bridge50.P08

open Set Filter Topology
open QAlgorithms.Papers.Independent.Renew46.P18
open QAlgorithms.Papers.Independent.Claimed50.P22
open QAlgorithms.Papers.Independent.Next46.P35

universe u v w z

/-- Remark II.4, PDF p. 10: identity-arrow conjugation on the actual
source kernel. The section equation ensures that conjugation stays in it.
These are tensor group operations, not categorical arrow composition. -/
def sourceKernelAction {G : Type u} {K : Type v} [Group G] [Group K]
    (s : K →* G) (identity : G →* K)
    (hSection : ∀ g, s (identity g) = g) : G →* MulAut s.ker where
  toFun g :=
    { toFun := fun h => ⟨identity g * h.val * (identity g)⁻¹, by
        change s (identity g * h.val * (identity g)⁻¹) = 1
        have hh : s h.val = 1 := h.property
        simp [hSection, hh]⟩
      invFun := fun h => ⟨(identity g)⁻¹ * h.val * identity g, by
        change s ((identity g)⁻¹ * h.val * identity g) = 1
        have hh : s h.val = 1 := h.property
        simp [hSection, hh]⟩
      left_inv := by
        intro h
        apply Subtype.ext
        simp [mul_assoc]
      right_inv := by
        intro h
        apply Subtype.ext
        simp [mul_assoc]
      map_mul' := by
        intro h k
        apply Subtype.ext
        simp [mul_assoc] }
  map_one' := by
    ext h
    simp
  map_mul' := by
    intro g k
    ext h
    simp [mul_assoc]

/-- Sanity: at the identity object, kernel conjugation is the identity. -/
example {G : Type u} {K : Type v} [Group G] [Group K]
    (s : K →* G) (identity : G →* K)
    (hSection : ∀ g, s (identity g) = g) (h : s.ker) :
    (sourceKernelAction s identity hSection 1 h : K) = h.val := by
  simp [sourceKernelAction]

/-- Product charts, used only to express smoothness of multiplication. -/
local instance productCharts
    (E F M N : Type*) [TopologicalSpace E] [TopologicalSpace F]
    [TopologicalSpace M] [TopologicalSpace N]
    [ChartedSpace E M] [ChartedSpace F N] : ChartedSpace (E × F) (M × N) :=
  prodChartedSpace E M F N

section LocallyConvexCalculus

variable {E : Type u} [AddCommGroup E] [Module ℝ E] [TopologicalSpace E]
variable {G : Type v} [Group G] [TopologicalSpace G] [ChartedSpace E G]

/-- Definition A.1, PDF p. 35: compatible directional atlas and smooth
group operations. Hausdorff and locally convex model assumptions are
explicit in the theorem binders below. No norm or completeness is used. -/
def IsDirectionalLieGroup : Prop :=
  BastianiAtlas (E := E) (M := G) ∧
    DirectionalManifoldSmooth (E := E × E) (F := E)
      (fun p : G × G => p.1 * p.2) ∧
    DirectionalManifoldSmooth (E := E) (F := E) (fun g : G => g⁻¹)

/-- Definition A.3, PDF pp. 35–36: the left logarithmic velocity of a
curve equals x. The identity chart identifies T_1 G with E. Translating
by gamma(t) inverse before differentiating is exactly the equation
gamma'(t) = T(leftTranslation_gamma(t))(1) x. The chart centre is
subtracted explicitly; identity charts need not send 1 to zero. -/
def HasLeftVelocity (gamma : ℝ → G) (t : ℝ) (x : E) : Prop :=
  Tendsto (fun h : ℝ => h⁻¹ •
      (chartAt E (1 : G) ((gamma t)⁻¹ * gamma (t + h)) -
        chartAt E (1 : G) 1))
    (𝓝[≠] (0 : ℝ)) (𝓝 x)

/-- Definition A.3, PDF pp. 35–36: a smooth exponential function is the
time-one value of a global smooth solution of the left invariant ODE
for every identity tangent x. This requires actual solutions on all of R,
not local exponentiality or an arbitrary map called an exponential. -/
def IsExponentialFunction (expMap : E → G) : Prop :=
  DirectionalManifoldSmooth (E := E) (F := E) expMap ∧
    ∀ x : E, ∃ gamma : ℝ → G,
      DirectionalManifoldSmooth (E := ℝ) (F := E) gamma ∧
        gamma 0 = 1 ∧ (∀ t : ℝ, HasLeftVelocity gamma t x) ∧
          gamma 1 = expMap x

/-- Sanity: in the zero-dimensional group, all group operations are smooth
and the unique map is an ODE-defined exponential, including x = 0. -/
example : IsDirectionalLieGroup (E := PUnit.{1}) (G := PUnit.{1}) ∧
    IsExponentialFunction (E := PUnit.{1}) (G := PUnit.{1})
      (fun _ => PUnit.unit) := by
  have hs : ∀ {A : Type} [AddCommGroup A] [Module ℝ A] [TopologicalSpace A]
      (U : Set A) (f : A → PUnit.{1}), DirectionalSmoothOn U f := by
    intro A a m t U f
    refine ⟨fun _ _ _ => 0, ?_, ?_, ?_⟩
    · intro x hx
      exact Subsingleton.elim _ _
    · intro n
      exact continuousOn_const
    · intro n x hx a h
      simpa only [sub_self, smul_zero] using
        (tendsto_const_nhds : Tendsto (fun _ : ℝ => (0 : PUnit.{1}))
          (𝓝[≠] (0 : ℝ)) (𝓝 (0 : PUnit.{1})))
  have smoothTarget : ∀ {A M : Type} [TopologicalSpace A] [AddCommGroup A]
      [Module ℝ A] [TopologicalSpace M] [ChartedSpace A M]
      (f : M → PUnit.{1}),
      DirectionalManifoldSmooth (E := A) (F := PUnit.{1}) f := by
    intro A M a b c d e f
    refine ⟨?_, ?_⟩
    · have hf : f = fun _ => PUnit.unit := funext (fun _ => Subsingleton.elim _ _)
      rw [hf]
      exact continuous_const
    · intro c hc e he
      exact hs _ _
  constructor
  · refine ⟨?_, smoothTarget _, smoothTarget _⟩
    intro c hc e he
    change DirectionalSmoothOn _ _
    exact hs _ _
  · refine ⟨smoothTarget _, ?_⟩
    intro x
    refine ⟨fun _ => PUnit.unit, smoothTarget _, rfl, ?_, rfl⟩
    intro t
    change Tendsto _ _ (𝓝 x)
    have ht : ∀ f : ℝ → PUnit.{1}, Tendsto f (𝓝[≠] (0 : ℝ)) (𝓝 x) := by
      intro f
      have hf : f = fun _ => x := funext (fun _ => Subsingleton.elim _ _)
      rw [hf]
      exact tendsto_const_nhds
    exact ht _

end LocallyConvexCalculus

/-- Lemma A.4, PDF pp. 35–36: the induced differential in the actual
identity charts. The slope is computed on chartE(1) + h x and then
mapped through the homomorphism and the target identity chart. For the
smooth maps between Hausdorff locally convex manifolds used below this
limit exists and is unique; no freely supplied tangent map is used. -/
noncomputable def identityDifferential
    {E : Type u} {F : Type v}
    [AddCommGroup E] [Module ℝ E] [TopologicalSpace E]
    [AddCommGroup F] [Module ℝ F] [TopologicalSpace F]
    {G : Type w} {K : Type z}
    [Group G] [TopologicalSpace G] [ChartedSpace E G]
    [Group K] [TopologicalSpace K] [ChartedSpace F K]
    (alpha : G →* K) (x : E) : F :=
  Filter.limUnder (𝓝[≠] (0 : ℝ)) (fun h : ℝ => h⁻¹ •
    (chartAt F (1 : K)
      (alpha ((chartAt E (1 : G)).symm (chartAt E (1 : G) 1 + h • x))) -
        chartAt F (1 : K) 1))

/-- Sanity: the actual differential on the trivial group has zero value. -/
example (x : PUnit.{1}) :
    identityDifferential (E := PUnit.{1}) (F := PUnit.{1})
      (MonoidHom.id PUnit.{1}) x = 0 := by
  exact Subsingleton.elim _ _

end QAlgorithms.Papers.Independent.Bridge50.P08
Source
Principal 2-bundles and their gauge 2-groups, arXiv:0803.3692v4, https://arxiv.org/abs/0803.3692v4
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

QAlgorithms.Papers.Independent.Bridge50.P08.HasLeftVelocity

For a real vector space EEE with its specified topology, a group GGG with its specified topology and charts modeled on EEE, an arbitrary function γ:R→G\gamma:\mathbb R\to Gγ:R→G, a real number ttt, and a vector x∈Ex\in Ex∈E, this predicate means that, writing ccc for the selected chart at 1G1_G1G​,

lim⁡h→0h≠0h−1(c(γ(t)−1γ(t+h))−c(1G))=x\lim_{\substack{h\to0\\h\neq0}} h^{-1}\bigl(c(\gamma(t)^{-1}\gamma(t+h))-c(1_G)\bigr)=xh→0h=0​lim​h−1(c(γ(t)−1γ(t+h))−c(1G​))=x

in the topology of EEE. The chart is evaluated through its total underlying function, with no explicit condition that γ(t)−1γ(t+h)\gamma(t)^{-1}\gamma(t+h)γ(t)−1γ(t+h) lie in its source. The definition assumes neither continuity nor smoothness of γ\gammaγ, places no restriction on ttt, and excludes h=0h=0h=0 from the limiting filter.

QAlgorithms.Papers.Independent.Bridge50.P08.IsDirectionalLieGroup

For a real vector space EEE with its specified topology and a group GGG with its specified topology and charts modeled on EEE, this predicate asserts the following three conditions, using the specified product charts on G×GG\times GG×G. To state them explicitly, for topological real vector spaces L,WL,WL,W, a subset U⊆LU\subseteq LU⊆L, and a total function f:L→Wf:L\to Wf:L→W, write D(U,f)D(U,f)D(U,f) for the existence of total functions dn:L×Ln→Wd_n:L\times L^n\to Wdn​:L×Ln→W, one for every integer n≥0n\geq0n≥0, such that d0(x;())=f(x)d_0(x;())=f(x)d0​(x;())=f(x) for every x∈Ux\in Ux∈U, each function (x,a)↦dn(x;a)(x,a)\mapsto d_n(x;a)(x,a)↦dn​(x;a) is continuous on U×LnU\times L^nU×Ln, and, for every n≥0n\geq0n≥0, x∈Ux\in Ux∈U, a=(a1,…,an)∈Lna=(a_1,\ldots,a_n)\in L^na=(a1​,…,an​)∈Ln, and h∈Lh\in Lh∈L,

lim⁡r→0r≠0r−1(dn(x+rh;a)−dn(x;a))=dn+1(x;a1,…,an,h).\lim_{\substack{r\to0\\r\neq0}} r^{-1}\bigl(d_n(x+rh;a)-d_n(x;a)\bigr) =d_{n+1}(x;a_1,\ldots,a_n,h).r→0r=0​lim​r−1(dn​(x+rh;a)−dn​(x;a))=dn+1​(x;a1​,…,an​,h).

The predicate requires D(c.target∩(c−1)−1(e.source), e∘c−1)D(c.target\cap(c^{-1})^{-1}(e.source),\,e\circ c^{-1})D(c.target∩(c−1)−1(e.source),e∘c−1) for every pair of charts c,ec,ec,e in the specified atlas of GGG; it also requires multiplication m:G×G→Gm:G\times G\to Gm:G×G→G, m(a,b)=abm(a,b)=abm(a,b)=ab, to be continuous and to satisfy D(c.target∩(m∘c−1)−1(e.source), e∘m∘c−1)D(c.target\cap(m\circ c^{-1})^{-1}(e.source),\,e\circ m\circ c^{-1})D(c.target∩(m∘c−1)−1(e.source),e∘m∘c−1) for every source chart ccc in the specified atlas of G×GG\times GG×G and target chart eee in that of GGG; finally, it requires inversion j:G→Gj:G\to Gj:G→G, j(a)=a−1j(a)=a^{-1}j(a)=a−1, to be continuous and to satisfy the same chart condition D(c.target∩(j∘c−1)−1(e.source), e∘j∘c−1)D(c.target\cap(j\circ c^{-1})^{-1}(e.source),\,e\circ j\circ c^{-1})D(c.target∩(j∘c−1)−1(e.source),e∘j∘c−1) for every pair of charts of GGG. Chart inverses in these expressions are their total underlying functions. The derivative conditions include n=0n=0n=0, with the empty tuple of directions, and use all sufficiently small nonzero real increments without restricting x+rhx+rhx+rh to UUU; no linearity in the direction arguments is separately required, and the conditions defining D(U,f)D(U,f)D(U,f) are vacuous when UUU is empty.

QAlgorithms.Papers.Independent.Bridge50.P08.IsExponentialFunction

For a real vector space EEE with its specified topology and a group GGG with its specified topology and charts modeled on EEE, this predicate on a function Exp⁡:E→G\operatorname{Exp}:E\to GExp:E→G asserts that Exp⁡\operatorname{Exp}Exp has the smoothness property described below and that, for every x∈Ex\in Ex∈E, including x=0x=0x=0, there exists a function γ:R→G\gamma:\mathbb R\to Gγ:R→G with that smoothness property such that γ(0)=1G\gamma(0)=1_Gγ(0)=1G​, γ(1)=Exp⁡(x)\gamma(1)=\operatorname{Exp}(x)γ(1)=Exp(x), and, for every t∈Rt\in\mathbb Rt∈R,

lim⁡h→0h≠0h−1(c(γ(t)−1γ(t+h))−c(1G))=x,\lim_{\substack{h\to0\\h\neq0}} h^{-1}\bigl(c(\gamma(t)^{-1}\gamma(t+h))-c(1_G)\bigr)=x,h→0h=0​lim​h−1(c(γ(t)−1γ(t+h))−c(1G​))=x,

where ccc is the selected chart of GGG at 1G1_G1G​. The smoothness property for a map f:P→Qf:P\to Qf:P→Q, with the specified charts modeled on real vector spaces L,WL,WL,W, means that fff is continuous and, for every source atlas chart aaa and target atlas chart bbb, the total coordinate function fa,b=b∘f∘a−1:L→Wf_{a,b}=b\circ f\circ a^{-1}:L\to Wfa,b​=b∘f∘a−1:L→W admits functions dn:L×Ln→Wd_n:L\times L^n\to Wdn​:L×Ln→W, for every n≥0n\geq0n≥0, on the coordinate set U=a.target∩(f∘a−1)−1(b.source)U=a.target\cap(f\circ a^{-1})^{-1}(b.source)U=a.target∩(f∘a−1)−1(b.source), satisfying d0(y;())=fa,b(y)d_0(y;())=f_{a,b}(y)d0​(y;())=fa,b​(y) for y∈Uy\in Uy∈U, continuity of (y,v)↦dn(y;v)(y,v)\mapsto d_n(y;v)(y,v)↦dn​(y;v) on U×LnU\times L^nU×Ln, and

lim⁡r→0r≠0r−1(dn(y+rh;v)−dn(y;v))=dn+1(y;v1,…,vn,h)\lim_{\substack{r\to0\\r\neq0}} r^{-1}\bigl(d_n(y+rh;v)-d_n(y;v)\bigr) =d_{n+1}(y;v_1,\ldots,v_n,h)r→0r=0​lim​r−1(dn​(y+rh;v)−dn​(y;v))=dn+1​(y;v1​,…,vn​,h)

for every n≥0n\geq0n≥0, y∈Uy\in Uy∈U, v∈Lnv\in L^nv∈Ln, and h∈Lh\in Lh∈L. This property is applied with (P,Q,L,W)=(E,G,E,E)(P,Q,L,W)=(E,G,E,E)(P,Q,L,W)=(E,G,E,E) for Exp⁡\operatorname{Exp}Exp and (R,G,R,E)(\mathbb R,G,\mathbb R,E)(R,G,R,E) for each γ\gammaγ, using the specified charts on EEE and R\mathbb RR. All coordinate functions and charts are evaluated as total functions, the derivative limits do not restrict y+rhy+rhy+rh to UUU, and an empty UUU imposes no coordinate conditions. The witnessing curve may depend on xxx; no homomorphism identity or uniqueness condition for that curve is part of this predicate.

QAlgorithms.Papers.Independent.Bridge50.P08.identityDifferential

Let EEE and FFF be real vector spaces, each equipped with an additive commutative group structure and an arbitrary topology, and let GGG and KKK be groups with arbitrary topologies and specified charted-space structures modeled on EEE and FFF, respectively. For any group homomorphism α:G→K\alpha:G\to Kα:G→K and any x∈Ex\in Ex∈E, this noncomputable definition produces an element of FFF by applying the filter operation that chooses a limit to the function

h⟼h−1[cK ⁣(α ⁣(cG−1(cG(1G)+hx)))−cK(1K)]h\longmapsto h^{-1}\left[ c_K\!\left(\alpha\!\left(c_G^{-1}(c_G(1_G)+hx)\right)\right) -c_K(1_K) \right]h⟼h−1[cK​(α(cG−1​(cG​(1G​)+hx)))−cK​(1K​)]

as hhh tends to 000 through nonzero real values, where cGc_GcG​ and cKc_KcK​ are the selected charts at 1G1_G1G​ and 1K1_K1K​. If this function has a limit, the operation chooses a limit; if it has no limit, it still returns an unspecified element of FFF. The topologies need not be Hausdorff, so a limit need not be unique. No continuity or smoothness of α\alphaα, compatibility of the vector-space operations with the topologies, or existence of the displayed limit is assumed. The charts and inverse chart are total underlying functions, and no condition is imposed that their arguments lie in their chart domains.

QAlgorithms.Papers.Independent.Bridge50.P08.sourceKernelAction

For arbitrary groups GGG and KKK, group homomorphisms s:K→Gs:K\to Gs:K→G and i:G→Ki:G\to Ki:G→K, and a hypothesis s(i(g))=gs(i(g))=gs(i(g))=g for every g∈Gg\in Gg∈G, this defines a group homomorphism from GGG to the group of group automorphisms of ker⁡s={h∈K:s(h)=1G}\ker s=\{h\in K:s(h)=1_G\}kers={h∈K:s(h)=1G​}. The automorphism assigned to g∈Gg\in Gg∈G sends h∈ker⁡sh\in\ker sh∈kers to i(g)h i(g)−1i(g)h\,i(g)^{-1}i(g)hi(g)−1, and its inverse sends hhh to i(g)−1h i(g)i(g)^{-1}h\,i(g)i(g)−1hi(g). These formulas take values in ker⁡s\ker skers, preserve multiplication there, and are inverse to each other; the automorphism assigned to 1G1_G1G​ is the identity, and the automorphism assigned to gg′gg'gg′ is the composition of those assigned to ggg and g′g'g′. No topology or nontriviality assumption is imposed on either group.

Human review
  • Endorsed by Shuze Chen · Oct 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me