Zulip Chat Archive
Stream: Is there code for X?
Topic: cast "h : n = m" on groupCohmology
Edison Xie (Jan 31 2026 at 18:20):
Do we want to have this definition? I had problem it when my degree is equal but not definitionally equal (e.g p + 1 and 1 + p)
import Mathlib
universe u
variable {R G : Type u} [CommRing R] [Group G] (A : Rep R G)
open CategoryTheory in
noncomputable def groupCohomology.cast {n m} (h : n = m) :
groupCohomology A n ≅ groupCohomology A m := h ▸ Iso.refl _
Joël Riou (Jan 31 2026 at 18:30):
I am not sure we want this. Could you give more context?
Kevin Buzzard (Jan 31 2026 at 18:31):
The context seems to be: "how do I get an element of when I have an element of " I guess?
Joël Riou (Jan 31 2026 at 18:34):
Then, the question is, how on earth did you get an element in ?!
(For example, for the composition of Ext-groups, I did not define a map but a map to whenever a + b = c.)
Edison Xie (Jan 31 2026 at 19:15):
Screenshot 2026-01-31 at 19.14.21.png
the context here is I'm trying to state the two commutative diagrams ((ii) is where the main issue is) about cup product and chasing the upper half of the diagram gives me p + q + 1 where chasing the other half gives me p + 1 + q
Joël Riou (Jan 31 2026 at 19:25):
Then, I would strongly recommend following a similar design for the cup product as for docs#CategoryTheory.Abelian.Ext.comp (this is also consistent with the way the API for shifts on categories of complexes is designed, or the API for the total complex of a bicomplex, etc.). Arguably, the target group of the connecting homomorphism could be in degree not just n + 1 but any m such that n + 1 = m (see also docs#DerivedCategory.HomologySequence.δ).
Edison Xie (Jan 31 2026 at 20:11):
that's a great advice, thanks!
Last updated: Feb 28 2026 at 14:05 UTC