Definitions for Group Objects and Internal Categories
DefinitionQAlgorithms_Papers_Independent_Intake100_P20The objects the formalized statements of Group Objects and Internal Categories (arXiv:math/0212065) are stated in. Each was checked against the paper by a blind read-back and a moderator.
GroupMaps: PDF pp. 1–3: the three maps of an unbundled group object in Set.GroupDiagrams: PDF pp. 1–3: associativity, both units, and both inverse diagrams.mapsOfGroup: PDF p. 3: read the ordinary group operations as the structure maps.groupOfMaps: PDF pp. 2–3: the group computed from the diagrammatic operations.GroupObjectInGrp: PDF pp. 3–4: all three maps must be homomorphisms for the ORIGINAL ambient group multiplication. The internal multiplication is independent data.GroupObjectInTop: PDF p. 3: a group object in Top uses joint continuity of multiplication. The unit map is explicitly included; it is the constant map from a singleton.SmoothGroupObject: PDF p. 3 and footnote 3: a group object on a fixed real smooth manifold. The identity point defines an automatically smooth map from the point manifold.ActionDiagrams: PDF pp. 4–5: the two diagrams for a left action; inversion is unused.actionOfMap: PDF pp. 4–5: the ordinary action computed from the actual action map.tensorRing: PDF p. 5 and footnote 5: the canonical ℤ-module presentation of Ab, with its TENSOR monoidal structure. This is Mathlib's actual ring construction. We use the category of small ℤ-modules: Mathlib's tensor monoidal instance requires the module universe to equal the scalar universe, here Type 0.TensorActionDiagrams: PDF p. 5: unit and associativity of a tensor action, evaluated on pure tensors. Linearity of the map on the tensor product gives BOTH distributivities.CategoryMaps: PDF pp. 6–8: source, target, identity and composition, in total-arrow coordinates. compose g f denotes g after f and is used only if target f = source g. Outside that domain its value has no mathematical significance.CategoryDiagrams: PDF pp. 6–8: every category diagram, including endpoint compatibility. Associativity is quantified over composable triples, with no identification of nested pullback TYPES.categoryOfMaps: PDF pp. 6–8: the ordinary category constructed from an internal Set category. Its hom types are the source-target fibres of the ORIGINAL arrow set.TotalArrow: PDF pp. 6–8: the set of all arrows of a small category.mapsOfCategory: PDF pp. 6–8: the reverse construction uses the original category's arrows. A canonical filler is supplied for noncomposable pairs; it is never compared.totalArrowEquiv: The reconstruction keeps the original total arrow, not merely its endpoints.totalHomEquiv: The hom of an ordinary category is recovered as the matching total-arrow fibre.emptyCategoryMaps: The empty category and all its diagrams are retained.InternalCategoryInGrp: PDF p. 8: structure maps are homomorphisms; composition is a homomorphism on the composable-pair subgroup, including its identity element.FunctorDiagrams: PDF p. 8: functors in total-arrow coordinates preserve endpoints, identities and composition. No action on off-domain composites is required.productCategoryMaps: PDF p. 8: the cartesian product category.pointCategoryMaps: PDF p. 8: the one-object discrete terminal category called 0 in the paper.GroupObjectInCat: PDF p. 8: a STRICT group object in Cat, with pointwise group operations on objects and arrows. Their associativity, units, and both inverse laws come from the given Group structures; multiplication, unit and inversion must all be functors. Group inversion is not an assumed categorical inverse of arrows.splitAction: PDF p. 9: the conjugation action belonging to the specified splitting.splitCoordinates: PDF p. 9: the computed split coordinates, including the kernel witness.splitAssembly: PDF p. 9: the inverse map sends (k,x) to k e(x).CrossedModule: PDF p. 9: exactly the two crossed-module axioms, with an action by GROUP AUTOMORPHISMS, as clarified on p. 10.crossedCategoryMaps: PDF pp. 9–10: the actual crossed-module category on the semidirect product. The formula for composition is used ONLY on composable pairs.sourceHom: PDF p. 8: bundle the source homomorphism already in the internal data.targetHom: PDF p. 8: bundle the target homomorphism already in the internal data.identityHom: PDF p. 8: bundle the identity homomorphism already in the internal data.kernelBoundary: PDF p. 11: restrict the ACTUAL target to the ACTUAL source kernel.kernelAction: PDF p. 11: x acts on the kernel by identity(x) k identity(x) inverse.categoryCoordinates: PDF pp. 9,11: the canonical coordinate map for the original category.crossedKernelMap: PDF pp. 10–11: the canonical inclusion into the source kernel of the reconstructed category. It does not depend on a choice of an equivalence.
import Mathlib
/-!
Statements from Forrester-Barker, *Group Objects and Internal Categories*,
arXiv:math/0212065v1. Page numbers are PDF page numbers.
All new interfaces are local to this paper. Cartesian diagrams in concrete
categories are written elementwise. The tensor product below is over ℤ.
Category composition is stored as a total function, as in the accepted
Renew46.P18 interface, but is used and compared only on composable pairs.
Its values on other pairs are immaterial and are never part of reconstruction.
No categorical inverse for arrows is assumed.
-/
namespace QAlgorithms.Papers.Independent.Intake100.P20
open CategoryTheory
open scoped TensorProduct Manifold ContDiff
universe u v w z
/-- PDF pp. 1–3: the three maps of an unbundled group object in Set. -/
structure GroupMaps (G : Type u) where
mul : G → G → G
unit : G
inverse : G → G
/-- PDF pp. 1–3: associativity, both units, and both inverse diagrams. -/
structure GroupDiagrams {G : Type u} (D : GroupMaps G) : Prop where
assoc : ∀ a b c, D.mul (D.mul a b) c = D.mul a (D.mul b c)
unit_left : ∀ a, D.mul D.unit a = a
unit_right : ∀ a, D.mul a D.unit = a
inverse_left : ∀ a, D.mul (D.inverse a) a = D.unit
inverse_right : ∀ a, D.mul a (D.inverse a) = D.unit
/-- PDF p. 3: read the ordinary group operations as the structure maps. -/
def mapsOfGroup (G : Type u) [Group G] : GroupMaps G :=
⟨(· * ·), 1, Inv.inv⟩
/-- PDF pp. 2–3: the group computed from the diagrammatic operations. -/
def groupOfMaps {G : Type u} (D : GroupMaps G) (h : GroupDiagrams D) : Group G where
mul := D.mul
one := D.unit
inv := D.inverse
mul_assoc := h.assoc
one_mul := h.unit_left
mul_one := h.unit_right
inv_mul_cancel := h.inverse_left
/-- The conversion preserves the actual multiplication, unit, and inverse. -/
example {G : Type u} (D : GroupMaps G) (h : GroupDiagrams D) (a b : G) :
(groupOfMaps D h).mul a b = D.mul a b ∧
(groupOfMaps D h).one = D.unit ∧
(groupOfMaps D h).inv a = D.inverse a := ⟨rfl, rfl, rfl⟩
/-- PDF pp. 3–4: all three maps must be homomorphisms for the ORIGINAL
ambient group multiplication. The internal multiplication is independent data. -/
def GroupObjectInGrp {G : Type u} [Group G] (D : GroupMaps G) : Prop :=
GroupDiagrams D ∧ D.unit = 1 ∧ D.mul 1 1 = 1 ∧
(∀ a b c d, D.mul (a * c) (b * d) = D.mul a b * D.mul c d) ∧
D.inverse 1 = 1 ∧ (∀ a b, D.inverse (a * b) = D.inverse a * D.inverse b)
/-- Sanity: all group-object diagrams and homomorphism laws hold on the
one-element group; the forward hypotheses are not globally vacuous. -/
example : GroupObjectInGrp (mapsOfGroup PUnit) := by
refine ⟨?_, rfl, rfl, ?_, rfl, ?_⟩
· constructor <;> intros <;> exact Subsingleton.elim _ _
· intros; exact Subsingleton.elim _ _
· intros; exact Subsingleton.elim _ _
/-- PDF p. 3: a group object in Top uses joint continuity of multiplication.
The unit map is explicitly included; it is the constant map from a singleton. -/
def GroupObjectInTop {G : Type u} [TopologicalSpace G] (D : GroupMaps G) : Prop :=
GroupDiagrams D ∧ Continuous (fun p : G × G => D.mul p.1 p.2) ∧
Continuous (fun _ : PUnit.{1} => D.unit) ∧ Continuous D.inverse
/-- PDF p. 3 and footnote 3: a group object on a fixed real smooth manifold.
The identity point defines an automatically smooth map from the point manifold. -/
def SmoothGroupObject {E : Type v} [NormedAddCommGroup E] [NormedSpace ℝ E]
{G : Type u} [TopologicalSpace G] [ChartedSpace E G] (D : GroupMaps G) : Prop :=
GroupDiagrams D ∧
ContMDiff ((𝓘(ℝ, E)).prod (𝓘(ℝ, E))) (𝓘(ℝ, E)) ∞
(fun p : G × G => D.mul p.1 p.2) ∧
ContMDiff (𝓘(ℝ, E)) (𝓘(ℝ, E)) ∞ D.inverse
/-- PDF pp. 4–5: the two diagrams for a left action; inversion is unused. -/
def ActionDiagrams {M : Type u} [Monoid M] {X : Type v} (n : M × X → X) : Prop :=
(∀ x, n (1, x) = x) ∧ (∀ a b x, n (a * b, x) = n (a, n (b, x)))
/-- PDF pp. 4–5: the ordinary action computed from the actual action map. -/
def actionOfMap {M : Type u} [Monoid M] {X : Type v}
(n : M × X → X) (h : ActionDiagrams n) : MulAction M X where
smul a x := n (a, x)
one_smul := h.1
mul_smul := h.2
/-- Empty acted-on sets require no exceptional convention. -/
example {M : Type u} [Monoid M] {X : Type v} (n : M × X → X)
(h : ActionDiagrams n) (a : M) (x : X) :
@SMul.smul M X (actionOfMap n h).toSMul a x = n (a, x) := rfl
/-- PDF p. 5 and footnote 5: the canonical ℤ-module presentation of Ab,
with its TENSOR monoidal structure. This is Mathlib's actual ring construction.
We use the category of small ℤ-modules: Mathlib's tensor monoidal instance
requires the module universe to equal the scalar universe, here Type 0. -/
noncomputable def tensorRing (M : ModuleCat.{0} ℤ) [MonObj M] : Ring M :=
ModuleCat.MonModuleEquivalenceAlgebra.MonObj.toRing M
/-- PDF p. 5: unit and associativity of a tensor action, evaluated on pure
tensors. Linearity of the map on the tensor product gives BOTH distributivities. -/
def TensorActionDiagrams (M : ModuleCat.{0} ℤ) [MonObj M]
(A : Type v) [AddCommGroup A]
(n : TensorProduct ℤ M A →ₗ[ℤ] A) : Prop :=
(∀ a, n ((MonObj.one (X := M) (1 : ℤ)) ⊗ₜ[ℤ] a) = a) ∧
(∀ x y : M, ∀ a : A,
n ((MonObj.mul (X := M) (x ⊗ₜ[ℤ] y)) ⊗ₜ[ℤ] a) =
n (x ⊗ₜ[ℤ] n (y ⊗ₜ[ℤ] a)))
/-- Sanity: the zero abelian group is a tensor module, including when the
acting tensor ring is itself zero. -/
example (M : ModuleCat.{0} ℤ) [MonObj M] :
TensorActionDiagrams M PUnit (0 : TensorProduct ℤ M PUnit →ₗ[ℤ] PUnit) := by
constructor <;> intros <;> exact Subsingleton.elim _ _
/-- PDF pp. 6–8: source, target, identity and composition, in total-arrow
coordinates. compose g f denotes g after f and is used only if target f = source g.
Outside that domain its value has no mathematical significance. -/
structure CategoryMaps (A : Type u) (O : Type v) where
source : A → O
target : A → O
identity : O → A
compose : A → A → A
/-- PDF pp. 6–8: every category diagram, including endpoint compatibility.
Associativity is quantified over composable triples, with no identification of
nested pullback TYPES. -/
structure CategoryDiagrams {A : Type u} {O : Type v} (D : CategoryMaps A O) : Prop where
source_identity : ∀ x, D.source (D.identity x) = x
target_identity : ∀ x, D.target (D.identity x) = x
source_compose : ∀ f g, D.target f = D.source g →
D.source (D.compose g f) = D.source f
target_compose : ∀ f g, D.target f = D.source g →
D.target (D.compose g f) = D.target g
identity_compose : ∀ f, D.compose (D.identity (D.target f)) f = f
compose_identity : ∀ f, D.compose f (D.identity (D.source f)) = f
assoc : ∀ f g h, D.target f = D.source g → D.target g = D.source h →
D.compose h (D.compose g f) = D.compose (D.compose h g) f
/-- PDF pp. 6–8: the ordinary category constructed from an internal Set category.
Its hom types are the source-target fibres of the ORIGINAL arrow set. -/
def categoryOfMaps {A : Type u} {O : Type v} (D : CategoryMaps A O)
(h : CategoryDiagrams D) : Category.{u} O where
Hom x y := {f : A // D.source f = x ∧ D.target f = y}
id x := ⟨D.identity x, h.source_identity x, h.target_identity x⟩
comp f g := ⟨D.compose g.val f.val,
(h.source_compose f.val g.val (f.property.2.trans g.property.1.symm)).trans f.property.1,
(h.target_compose f.val g.val (f.property.2.trans g.property.1.symm)).trans g.property.2⟩
id_comp := by
intro x y f
apply Subtype.ext
change D.compose f.val (D.identity x) = f.val
exact (congrArg (fun o => D.compose f.val (D.identity o)) f.property.1).symm.trans
(h.compose_identity f.val)
comp_id := by
intro x y f
apply Subtype.ext
change D.compose (D.identity y) f.val = f.val
exact (congrArg (fun o => D.compose (D.identity o) f.val) f.property.2).symm.trans
(h.identity_compose f.val)
assoc := by
intro x y z q f g k
apply Subtype.ext
exact h.assoc f.val g.val k.val
(f.property.2.trans g.property.1.symm) (g.property.2.trans k.property.1.symm)
/-- PDF pp. 6–8: the set of all arrows of a small category. -/
def TotalArrow (O : Type v) [Category.{u} O] := Σ x : O, Σ y : O, (x ⟶ y)
/-- PDF pp. 6–8: the reverse construction uses the original category's arrows.
A canonical filler is supplied for noncomposable pairs; it is never compared. -/
noncomputable def mapsOfCategory (O : Type v) [Category.{u} O] :
CategoryMaps (TotalArrow O) O := by
classical
exact
{ source := fun f => f.1
target := fun f => f.2.1
identity := fun x => ⟨x, x, 𝟙 x⟩
compose := fun g f => if h : f.2.1 = g.1 then
⟨f.1, g.2.1, f.2.2 ≫ eqToHom h ≫ g.2.2⟩ else f }
/-- The reconstruction keeps the original total arrow, not merely its endpoints. -/
def totalArrowEquiv {A : Type u} {O : Type v} (D : CategoryMaps A O)
(h : CategoryDiagrams D) :
letI := categoryOfMaps D h
A ≃ TotalArrow O := by
letI := categoryOfMaps D h
exact
{ toFun := fun a => ⟨D.source a, D.target a, ⟨a, rfl, rfl⟩⟩
invFun := fun f => f.2.2.val
left_inv := fun _ => rfl
right_inv := by
rintro ⟨x, y, ⟨f, hs, ht⟩⟩
cases hs
cases ht
rfl }
/-- The hom of an ordinary category is recovered as the matching total-arrow fibre. -/
noncomputable def totalHomEquiv (O : Type v) [Category.{u} O] (x y : O) :
(x ⟶ y) ≃ {a : TotalArrow O // a.1 = x ∧ a.2.1 = y} where
toFun f := ⟨⟨x, y, f⟩, rfl, rfl⟩
invFun a := eqToHom a.property.1.symm ≫ a.val.2.2 ≫ eqToHom a.property.2
left_inv := by intro f; simp
right_inv := by
rintro ⟨⟨a, b, f⟩, ha, hb⟩
cases ha
cases hb
simp
/-- The empty category and all its diagrams are retained. -/
def emptyCategoryMaps : CategoryMaps Empty Empty where
source := id
target := id
identity := id
compose _ f := f
/-- Sanity: no nonemptiness hypothesis entered the category interface. -/
example : CategoryDiagrams emptyCategoryMaps where
source_identity := by intro x; cases x
target_identity := by intro x; cases x
source_compose := by intro f; cases f
target_compose := by intro f; cases f
identity_compose := by intro f; cases f
compose_identity := by intro f; cases f
assoc := by intro f; cases f
/-- PDF p. 8: structure maps are homomorphisms; composition is a homomorphism
on the composable-pair subgroup, including its identity element. -/
structure InternalCategoryInGrp {A : Type u} {O : Type v}
[Group A] [Group O] (D : CategoryMaps A O) : Prop where
category : CategoryDiagrams D
source_one : D.source 1 = 1
source_mul : ∀ a b, D.source (a * b) = D.source a * D.source b
target_one : D.target 1 = 1
target_mul : ∀ a b, D.target (a * b) = D.target a * D.target b
identity_one : D.identity 1 = 1
identity_mul : ∀ x y, D.identity (x * y) = D.identity x * D.identity y
compose_one : D.compose 1 1 = 1
interchange : ∀ f g a b, D.target f = D.source g → D.target a = D.source b →
D.compose (g * b) (f * a) = D.compose g f * D.compose b a
/-- PDF p. 8: functors in total-arrow coordinates preserve endpoints, identities
and composition. No action on off-domain composites is required. -/
def FunctorDiagrams {A : Type u} {O : Type v} {B : Type w} {P : Type z}
(D : CategoryMaps A O) (E : CategoryMaps B P) (fo : O → P) (fa : A → B) : Prop :=
(∀ a, E.source (fa a) = fo (D.source a) ∧ E.target (fa a) = fo (D.target a)) ∧
(∀ x, fa (D.identity x) = E.identity (fo x)) ∧
(∀ f g, D.target f = D.source g → fa (D.compose g f) = E.compose (fa g) (fa f))
/-- PDF p. 8: the cartesian product category. -/
def productCategoryMaps {A : Type u} {O : Type v} {B : Type w} {P : Type z}
(D : CategoryMaps A O) (E : CategoryMaps B P) : CategoryMaps (A × B) (O × P) where
source a := (D.source a.1, E.source a.2)
target a := (D.target a.1, E.target a.2)
identity x := (D.identity x.1, E.identity x.2)
compose b a := (D.compose b.1 a.1, E.compose b.2 a.2)
/-- PDF p. 8: the one-object discrete terminal category called 0 in the paper. -/
def pointCategoryMaps : CategoryMaps PUnit.{1} PUnit.{1} :=
⟨fun _ => PUnit.unit, fun _ => PUnit.unit, fun _ => PUnit.unit,
fun _ _ => PUnit.unit⟩
/-- Sanity: the point is a category, distinct from the empty category. -/
example : CategoryDiagrams pointCategoryMaps where
source_identity := by intro x; exact Subsingleton.elim _ _
target_identity := by intro x; exact Subsingleton.elim _ _
source_compose := by intros; exact Subsingleton.elim _ _
target_compose := by intros; exact Subsingleton.elim _ _
identity_compose := by intros; exact Subsingleton.elim _ _
compose_identity := by intros; exact Subsingleton.elim _ _
assoc := by intros; exact Subsingleton.elim _ _
/-- Sanity: the singleton internal category satisfies every Grp diagram,
including the identity and multiplication laws on composable pairs. -/
example : InternalCategoryInGrp pointCategoryMaps := by
constructor
· constructor <;> intros <;> exact Subsingleton.elim _ _
all_goals
intros
exact Subsingleton.elim _ _
/-- PDF p. 8: a STRICT group object in Cat, with pointwise group operations
on objects and arrows. Their associativity, units, and both inverse laws come
from the given Group structures; multiplication, unit and inversion must all be
functors. Group inversion is not an assumed categorical inverse of arrows. -/
def GroupObjectInCat {A : Type u} {O : Type v} [Group A] [Group O]
(D : CategoryMaps A O) : Prop :=
CategoryDiagrams D ∧
FunctorDiagrams (productCategoryMaps D D) D (fun x => x.1 * x.2) (fun a => a.1 * a.2) ∧
FunctorDiagrams pointCategoryMaps D (fun _ => 1) (fun _ => 1) ∧
FunctorDiagrams D D Inv.inv Inv.inv
/-- PDF p. 9: the conjugation action belonging to the specified splitting. -/
def splitAction {A : Type u} {O : Type v} [Group A] [Group O]
(s : A →* O) (e : O →* A) : O →* MulAut s.ker :=
(MulAut.conjNormal : A →* MulAut s.ker).comp e
/-- PDF p. 9: the computed split coordinates, including the kernel witness. -/
def splitCoordinates {A : Type u} {O : Type v} [Group A] [Group O]
(s : A →* O) (e : O →* A) (h : ∀ x, s (e x) = x) (a : A) :
SemidirectProduct s.ker O (splitAction s e) :=
⟨⟨a * (e (s a))⁻¹, by
change s (a * (e (s a))⁻¹) = 1
simp only [map_mul, map_inv, h, mul_inv_cancel]⟩, s a⟩
/-- PDF p. 9: the inverse map sends (k,x) to k e(x). -/
def splitAssembly {A : Type u} {O : Type v} [Group A] [Group O]
(s : A →* O) (e : O →* A)
(a : SemidirectProduct s.ker O (splitAction s e)) : A := a.left.val * e a.right
/-- Sanity: the coordinate formulas preserve the multiplication order. -/
example {A : Type u} {O : Type v} [Group A] [Group O]
(s : A →* O) (e : O →* A) (h : ∀ x, s (e x) = x) (a : A) :
(splitCoordinates s e h a).left.val = a * (e (s a))⁻¹ ∧
splitAssembly s e (splitCoordinates s e h a) =
(a * (e (s a))⁻¹) * e (s a) := ⟨rfl, rfl⟩
/-- PDF p. 9: exactly the two crossed-module axioms, with an action by
GROUP AUTOMORPHISMS, as clarified on p. 10. -/
def CrossedModule {C : Type u} {G : Type v} [Group C] [Group G]
(boundary : C →* G) (action : G →* MulAut C) : Prop :=
(∀ g c, boundary (action g c) = g * boundary c * g⁻¹) ∧
(∀ c d, action (boundary c) d = c * d * c⁻¹)
/-- Sanity: the one-element groups form a crossed module. -/
example : CrossedModule (MonoidHom.id PUnit) (1 : PUnit →* MulAut PUnit) := by
constructor <;> intro a b <;> exact Subsingleton.elim _ _
/-- PDF pp. 9–10: the actual crossed-module category on the semidirect product.
The formula for composition is used ONLY on composable pairs. -/
def crossedCategoryMaps {C : Type u} {G : Type v} [Group C] [Group G]
(boundary : C →* G) (action : G →* MulAut C) :
CategoryMaps (SemidirectProduct C G action) G where
source a := a.right
target a := boundary a.left * a.right
identity x := ⟨1, x⟩
compose b a := ⟨b.left * a.left, a.right⟩
/-- Sanity: vertical composition is b.left * a.left, not the semidirect product. -/
example {C : Type u} {G : Type v} [Group C] [Group G]
(d : C →* G) (r : G →* MulAut C) (a b : SemidirectProduct C G r) :
(crossedCategoryMaps d r).source a = a.right ∧
((crossedCategoryMaps d r).compose b a).left = b.left * a.left := ⟨rfl, rfl⟩
/-- PDF p. 8: bundle the source homomorphism already in the internal data. -/
def sourceHom {A : Type u} {O : Type v} [Group A] [Group O]
(D : CategoryMaps A O) (h : InternalCategoryInGrp D) : A →* O where
toFun := D.source
map_one' := h.source_one
map_mul' := h.source_mul
/-- PDF p. 8: bundle the target homomorphism already in the internal data. -/
def targetHom {A : Type u} {O : Type v} [Group A] [Group O]
(D : CategoryMaps A O) (h : InternalCategoryInGrp D) : A →* O where
toFun := D.target
map_one' := h.target_one
map_mul' := h.target_mul
/-- PDF p. 8: bundle the identity homomorphism already in the internal data. -/
def identityHom {A : Type u} {O : Type v} [Group A] [Group O]
(D : CategoryMaps A O) (h : InternalCategoryInGrp D) : O →* A where
toFun := D.identity
map_one' := h.identity_one
map_mul' := h.identity_mul
/-- PDF p. 11: restrict the ACTUAL target to the ACTUAL source kernel. -/
def kernelBoundary {A : Type u} {O : Type v} [Group A] [Group O]
(D : CategoryMaps A O) (h : InternalCategoryInGrp D) : (sourceHom D h).ker →* O :=
(targetHom D h).comp (sourceHom D h).ker.subtype
/-- PDF p. 11: x acts on the kernel by identity(x) k identity(x) inverse. -/
def kernelAction {A : Type u} {O : Type v} [Group A] [Group O]
(D : CategoryMaps A O) (h : InternalCategoryInGrp D) : O →* MulAut (sourceHom D h).ker :=
splitAction (sourceHom D h) (identityHom D h)
/-- PDF pp. 9,11: the canonical coordinate map for the original category. -/
def categoryCoordinates {A : Type u} {O : Type v} [Group A] [Group O]
(D : CategoryMaps A O) (h : InternalCategoryInGrp D) :
A → SemidirectProduct (sourceHom D h).ker O (kernelAction D h) :=
splitCoordinates (sourceHom D h) (identityHom D h) h.category.source_identity
/-- PDF pp. 10–11: the canonical inclusion into the source kernel of the
reconstructed category. It does not depend on a choice of an equivalence. -/
def crossedKernelMap {C : Type u} {G : Type v} [Group C] [Group G]
(action : G →* MulAut C) (c : C) :
(SemidirectProduct.rightHom : SemidirectProduct C G action →* G).ker :=
⟨⟨c, 1⟩, rfl⟩
/-- Sanity: extracting the boundary and action retains the ORIGINAL target
and identity-conjugation maps, with no arbitrary replacement homomorphisms. -/
example {A : Type u} {O : Type v} [Group A] [Group O]
(D : CategoryMaps A O) (h : InternalCategoryInGrp D)
(k : (sourceHom D h).ker) (x : O) (a : A) :
kernelBoundary D h k = D.target k.val ∧
((kernelAction D h x) k).val = D.identity x * k.val * (D.identity x)⁻¹ ∧
(categoryCoordinates D h a).right = D.source a := ⟨rfl, rfl, rfl⟩
end QAlgorithms.Papers.Independent.Intake100.P20
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Intake100.P20.ActionDiagrams
For any monoid , any type , and any function , this proposition requires
The type may be empty, in which case both requirements are vacuous.
QAlgorithms.Papers.Independent.Intake100.P20.CategoryDiagrams
For any types and any four functions , , and , this proposition consists of the following equations:
The function is defined on all pairs, but the source and target equations for composition apply only to composable pairs, and associativity applies only under the two displayed composability conditions. Quantification over an empty domain, or an implication whose composability premise fails, imposes no condition for those instances.
QAlgorithms.Papers.Independent.Intake100.P20.CategoryMaps
For any types and , this structure consists of four functions: a source map , a target map , an identity map , and a composition map . There are no equations required of these functions. In particular, is defined for every pair , including pairs with . Empty types are permitted whenever these four functions exist.
QAlgorithms.Papers.Independent.Intake100.P20.CrossedModule
For arbitrary groups and , a group homomorphism , and a group homomorphism , this definition is the proposition that both of the following identities hold:
Here is the group of multiplicative automorphisms of , and means the application of the automorphism assigned to to the element .
QAlgorithms.Papers.Independent.Intake100.P20.FunctorDiagrams
For arbitrary types , suppose given total maps , , , and total maps , , , together with functions and . This defines the proposition that, for every , and ; for every , ; and for every with , . No category axioms for either collection of maps are assumed in this definition, and the composition equation imposes no requirement on pairs whose indicated endpoints differ.
QAlgorithms.Papers.Independent.Intake100.P20.GroupDiagrams
For any type and data consisting of a binary operation, a distinguished element, and a unary function on , this proposition requires the following five identities: for every , ; and for every , , , , and .
QAlgorithms.Papers.Independent.Intake100.P20.GroupMaps
For any type , a structure of this kind consists of a binary operation , a distinguished element , and a function . No equations are required of these data. The distinguished element means that such a structure cannot exist when is empty.
QAlgorithms.Papers.Independent.Intake100.P20.GroupObjectInCat
For arbitrary groups and total functions , , and , this defines the following proposition. The maps satisfy for all ; and whenever ; and for all ; and whenever and . Multiplication preserves these maps in the precise sense that and for all , for all , and whenever and . The units satisfy , , and . Inversion also preserves the maps: and for all , for all , and whenever . Composition is total, but the composition-preservation and associativity equations apply under exactly the endpoint hypotheses stated.
QAlgorithms.Papers.Independent.Intake100.P20.GroupObjectInGrp
For any type with a given group structure, write its multiplication as juxtaposition and its identity as . For additional data on , this proposition requires all of the following: for every ; , , , and for every ; ; ; for every ; ; and for every .
QAlgorithms.Papers.Independent.Intake100.P20.GroupObjectInTop
For any topological space and data consisting of a binary operation, a distinguished element, and a unary function on , this proposition requires for all and , , , and for all . It additionally requires continuity of from with its product topology to , continuity of the constant map from the one-point space to with value , and continuity of .
QAlgorithms.Papers.Independent.Intake100.P20.InternalCategoryInGrp
For arbitrary groups and , and total functions , , and , this defines a proposition consisting of the following requirements. For every , ; for every with , and ; for every , and ; and for every with and , . In addition, , and for all , , for all , and . Finally, for all , if and , then . Composition is a function on every pair of arrows, although its source, target, associativity, and interchange requirements have the stated composability hypotheses.
QAlgorithms.Papers.Independent.Intake100.P20.SmoothGroupObject
Let be any normed additive commutative group equipped with a real normed vector space structure, let be a topological space equipped with a charted space structure modeled on , and let consist of a binary operation, a distinguished element, and a unary function on . This proposition requires for all and , , , and for all . It also requires that be from , using the product of the identity models on , to , using the identity model on , and that be with respect to that identity model.
QAlgorithms.Papers.Independent.Intake100.P20.TensorActionDiagrams
For any small -module equipped with a tensor monoid object structure, any additive commutative group , and any -linear map , this definition is the proposition
where and are the monoid object's linear unit and multiplication maps, and all tensor products are over . Both and may be trivial; if , linearity and the first equation force every element of to be zero.
QAlgorithms.Papers.Independent.Intake100.P20.TotalArrow
For any type equipped with a category structure, this definition gives the type of all triples , where and is a morphism from to . Thus the source and target objects are included as part of each element, and every morphism with every possible pair of endpoints is included. The object type and morphism types may lie in different universes. If is empty, this type of triples is empty.
QAlgorithms.Papers.Independent.Intake100.P20.actionOfMap
For any monoid , any type , any function , and any proof that for every and for every and , this definition equips with an action of by setting . The action's identity and multiplication laws are supplied by ; this construction also applies when is empty.
QAlgorithms.Papers.Independent.Intake100.P20.categoryCoordinates
For arbitrary groups and , let consist of maps , , and , with denoting the designated composition of after . Assume a hypothesis giving all of the following: for every ; whenever , one has and ; for every , and ; whenever and , one has ; the maps preserve identity elements and multiplication; ; and, for every with and ,
Let , and let be the action whose value has underlying element . This definition gives the function specified, for every , by
where the first component is regarded as an element of , using the identity contained in .
QAlgorithms.Papers.Independent.Intake100.P20.categoryOfMaps
For any types , maps , , and , assume for every ; and whenever ; for every ; and whenever and . This definition constructs a category with object type , with morphisms
identity at represented by , and the composite of a morphism represented by followed by one represented by represented by . Its morphism types lie in the same universe as . The supplied equations provide the category laws; values of on noncomposable pairs are not used in category composition. The construction also permits the empty category.
QAlgorithms.Papers.Independent.Intake100.P20.crossedCategoryMaps
For arbitrary groups and , a group homomorphism , and a group homomorphism , this definition supplies four maps with arrow set and object set . Writing an arrow as , these maps are
Here and are the designated source and target maps, is the designated identity map, and is the designated composition of after . The composition formula is defined for every pair of arrows, including pairs for which , and its value does not depend on . No identities relating and are assumed in this definition.
QAlgorithms.Papers.Independent.Intake100.P20.crossedKernelMap
For arbitrary groups and , a group homomorphism , and an element , this defines an element of the kernel of the projection , where . The element defined is , together with the fact that its projection is . Here has multiplication . The definition applies to every , including the identity, and allows either group to be trivial.
QAlgorithms.Papers.Independent.Intake100.P20.emptyCategoryMaps
This defines source, target, identity, and total composition maps with both the arrow type and the object type equal to the empty type. Source, target, and identity are the identity function on the empty type; composition is specified by . There are no objects or arrows, so none of these functions has an input on which it can be evaluated.
QAlgorithms.Papers.Independent.Intake100.P20.groupOfMaps
For any type , any binary operation , distinguished element , and function , and any proof that for all and that , , , and for all , this definition equips with a group structure whose multiplication is , identity is , and inverse function is .
QAlgorithms.Papers.Independent.Intake100.P20.identityHom
For arbitrary groups and , let consist of maps , , and , with denoting the designated composition of after . Assume a hypothesis giving all of the following: for every ; whenever , one has and ; for every , and ; whenever and , one has ; the maps preserve identity elements and multiplication; ; and, for every with and ,
Under these assumptions, this definition gives the group homomorphism whose value at every is , using the identity-preservation and multiplication-preservation assertions for supplied by .
QAlgorithms.Papers.Independent.Intake100.P20.kernelAction
For arbitrary groups and , let consist of maps , , and , with denoting the designated composition of after . Assume a hypothesis giving all of the following: for every ; whenever , one has and ; for every , and ; whenever and , one has ; the maps preserve identity elements and multiplication; ; and, for every with and ,
Writing for the kernel subgroup of the homomorphism , this definition gives a group homomorphism : each is assigned the automorphism whose value at has underlying element in .
QAlgorithms.Papers.Independent.Intake100.P20.kernelBoundary
For arbitrary groups and , let consist of maps , , and , with denoting the designated composition of after . Assume a hypothesis giving all of the following: for every ; whenever , one has and ; for every , and ; whenever and , one has ; the maps preserve identity elements and multiplication; ; and, for every with and ,
Writing for the kernel subgroup of the homomorphism , this definition gives the group homomorphism that sends to , where is viewed as its underlying element of .
QAlgorithms.Papers.Independent.Intake100.P20.mapsOfCategory
For any type equipped with a category structure, let be the type of triples with and . This noncomputable definition supplies four maps on and : the source and target of are and , and the identity assigned to is . For and , their total composition function is
where is the canonical morphism induced by the equality . In particular, when the middle objects do not agree, composition returns the entire first arrow , which is the second argument of . Empty categories are included.
QAlgorithms.Papers.Independent.Intake100.P20.mapsOfGroup
For any type equipped with a group structure, this definition returns the triple consisting of the group's multiplication , its identity element , and its inverse function .
QAlgorithms.Papers.Independent.Intake100.P20.pointCategoryMaps
This defines source, target, identity, and total composition maps whose object type and arrow type are both the singleton type . Each map returns on every input: and .
QAlgorithms.Papers.Independent.Intake100.P20.productCategoryMaps
For arbitrary types and collections of total maps , , , and , , , this defines maps with arrow type and object type by , , , and . No category axioms are assumed, and this composition formula is defined for every pair of elements of , without a composability condition.
QAlgorithms.Papers.Independent.Intake100.P20.sourceHom
For arbitrary groups and , let consist of maps , , and , with denoting the designated composition of after . Assume a hypothesis giving all of the following: for every ; whenever , one has and ; for every , and ; whenever and , one has ; the maps preserve identity elements and multiplication; ; and, for every with and ,
Under these assumptions, this definition gives the group homomorphism whose value at every is , using the identity-preservation and multiplication-preservation assertions for supplied by .
QAlgorithms.Papers.Independent.Intake100.P20.splitAction
For arbitrary groups and group homomorphisms and , this defines a group homomorphism from to the group of multiplicative automorphisms of . It sends to conjugation by , so its action on has underlying element . No assumption that is required.
QAlgorithms.Papers.Independent.Intake100.P20.splitAssembly
For arbitrary groups and , group homomorphisms and , and an element of the semidirect product , where acts on by conjugation , this definition gives the element of
Here , and on the right denotes its underlying element of . No assumption that is the identity is required.
QAlgorithms.Papers.Independent.Intake100.P20.splitCoordinates
For arbitrary groups , group homomorphisms and , a hypothesis for every , and an element , this defines the element of the semidirect product , where and acts on this kernel by . The first coordinate includes the assertion , so it is an element of the kernel. The semidirect product has underlying pairs and multiplication , with the first coordinate understood as an element of .
QAlgorithms.Papers.Independent.Intake100.P20.targetHom
For arbitrary groups and , let consist of maps , , and , with denoting the designated composition of after . Assume a hypothesis giving all of the following: for every ; whenever , one has and ; for every , and ; whenever and , one has ; the maps preserve identity elements and multiplication; ; and, for every with and ,
Under these assumptions, this definition gives the group homomorphism whose value at every is , using the identity-preservation and multiplication-preservation assertions for supplied by .
QAlgorithms.Papers.Independent.Intake100.P20.tensorRing
For any small -module equipped with a monoid object structure for the tensor product of -modules, this noncomputable definition returns the ring structure on the underlying type of obtained by the standard conversion from such monoid objects to rings. Writing and for the monoid object's linear unit and multiplication maps, its ring unit is , its product is , and its additive group is the one belonging to . No nontriviality assumption is imposed, so the zero module is included.
QAlgorithms.Papers.Independent.Intake100.P20.totalArrowEquiv
For any types , maps , , and , assume for every ; and whenever ; for every ; and whenever and . Equip with the category whose morphisms are elements satisfying and , whose identities are represented by , and whose composition is represented by . This definition constructs a bijection between and the type of all triples of objects and a morphism in that category: it sends to , with regarded as a morphism with those endpoints, and its inverse sends a triple to the underlying element of representing its morphism. These maps are inverse in both directions. Empty types are included whenever the assumed maps and equations exist.
QAlgorithms.Papers.Independent.Intake100.P20.totalHomEquiv
For any category with object type and any objects , this defines a bijection between the morphisms and the triples , where and , equipped with equalities and . The forward map sends to with the reflexive endpoint equalities. The inverse sends a triple with equalities and to the composite , where the first and last arrows are the canonical isomorphisms supplied by equality of objects. These maps are inverse in both directions. No assumption that any of these morphism sets is nonempty is required.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.