Skip to content

Commit

Permalink
Fix correctness bug for non-exterior power modules (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens authored Mar 7, 2024
1 parent ab3c1f0 commit c16b428
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/DeformationBases/ArcDiagDeformBasis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ struct ArcDiagDeformBasis{C <: RingElem} <: DeformBasis{C}
extra_data[basis_elem] = Set([diag])
end
basis_elem
end for (counter, diag) in enumerate(diag_iter) if
is_crossing_free(diag, part=:upper) && is_crossing_free(diag, part=:lower)
end for (counter, diag) in enumerate(diag_iter) if is_crossing_free(diag, part=:lower)
)
# push!(lens, len)
# push!(iters, iter)
Expand Down
67 changes: 67 additions & 0 deletions test/DeformationBases-test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,73 @@
@test all_pbwdeformations(sp, b; special_return=SMat)[1] == matrix(QQ, 2, 1, [1, 0])
@test all_pbwdeformations(sp, b) == collect(b)[1:1]
end

@testset "SO_2, T²V" begin
L = special_orthogonal_lie_algebra(QQ, 2)
V = tensor_power_obj(standard_module(L), 2)
sp = smash_product(L, V)

b = ArcDiagDeformBasis{QQFieldElem}(sp, 0:0)
@test length(b) == 0
ms = all_pbwdeformations(sp, b)
@test length(ms) == 0
end

@testset "SO_3, T²V" begin
L = special_orthogonal_lie_algebra(QQ, 3)
V = tensor_power_obj(standard_module(L), 2)
sp = smash_product(L, V)

b = ArcDiagDeformBasis{QQFieldElem}(sp, 0:0)
@test length(b) == 0
ms = all_pbwdeformations(sp, b)
@test length(ms) == 0
end

@testset "SO_2, T³V" begin
deformmap(sp::SmashProductLie, diag::String) = PBWDeformations.normalize_default(
PBWDeformations.arcdiag_to_deformationmap(PBWDeformations.SO(), arc_diagram(Undirected, diag), sp),
)

L = special_orthogonal_lie_algebra(QQ, 2)
V = tensor_power_obj(standard_module(L), 3)
sp = smash_product(L, V)

b = ArcDiagDeformBasis{QQFieldElem}(sp, 0:0)
@test length(b) == 3
ms = all_pbwdeformations(sp, b)
@test length(ms) == 3
@test issetequal(ms, [
deformmap(sp, "AACCEE,"), # same as "ABBDDA,"
deformmap(sp, "AACDCD,"), # same as "ABADDB,"
deformmap(sp, "ABABEE,"), # same as "ABBDAD,"
# deformmap(sp, "ABCCAB,"), # same as "ABCBCA,"; already linear depedent on the others
])
end

@testset "SO_3, T³V" begin
deformmap(sp::SmashProductLie, diag::String) = PBWDeformations.normalize_default(
PBWDeformations.arcdiag_to_deformationmap(PBWDeformations.SO(), arc_diagram(Undirected, diag), sp),
)

L = special_orthogonal_lie_algebra(QQ, 3)
V = tensor_power_obj(standard_module(L), 3)
sp = smash_product(L, V)

b = ArcDiagDeformBasis{QQFieldElem}(sp, 0:0)
@test length(b) == 4
ms = all_pbwdeformations(sp, b)
@test length(ms) == 4
@test issetequal(
ms,
[
deformmap(sp, "AACCEE,"), # same as "ABBDDA,"
deformmap(sp, "AACDCD,"), # same as "ABADDB,"
deformmap(sp, "ABABEE,"), # same as "ABBDAD,"
deformmap(sp, "ABCCAB,"), # same as "ABCBCA,"
],
)
end
end

end
Expand Down

0 comments on commit c16b428

Please sign in to comment.