Skip to content

Update AbstractSimplicialComplexes.m2 #3821

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: development
Choose a base branch
from

Conversation

n-m-g
Copy link
Contributor

@n-m-g n-m-g commented May 15, 2025

Added options to random simplicial complex

Added options to random simplicial complex
@n-m-g
Copy link
Contributor Author

n-m-g commented May 17, 2025 via email

Added "Verify" option as requested.
@n-m-g
Copy link
Contributor Author

n-m-g commented May 17, 2025 via email

@n-m-g
Copy link
Contributor Author

n-m-g commented May 17, 2025

Hi,

Not sure why one check failed. Here is the install on my machine:

--
i1 : restart
Macaulay2, version 1.25.05
Type "help" to see useful commands

i1 : uninstallPackage "AbstractSimplicialComplexes"

i2 : installPackage("AbstractSimplicialComplexes", RemakeAllDocumentation => true)
-- making example results for "AbstractSimplicialComplex == AbstractSimplicialComplex" -- .678518s elapsed
-- making example results for "dim(AbstractSimplicialComplex)" -- .675227s elapsed
-- making example results for "abstractSimplicialComplexFacets" -- .667991s elapsed
-- making example results for "randomAbstractSimplicialComplex" -- 1.20696s elapsed
-- making example results for "How to make abstract simplicial complexes" -- .66915s elapsed
-- making example results for "abstractSimplicialComplex" -- .668315s elapsed
-- making example results for "randomSubSimplicialComplex" -- .66798s elapsed
-- making example results for "ambientAbstractSimplicialComplex" -- .66994s elapsed
-- making example results for "How to make reduced and non-reduced simplicial chain complexes" -- .675977s elapsed
-- making example results for "ambientAbstractSimplicialComplexSize" -- .673752s elapsed
-- making example results for "inducedReducedSimplicialChainComplexMap" -- .669635s elapsed
-- making example results for "reducedSimplicialChainComplex" -- .672168s elapsed
-- making example results for "How to make subsimplical complexes and induced simplicial chain complex maps" -- .673662s elapsed
-- making example results for "simplicialChainComplex" -- .676869s elapsed
-- making example results for "AbstractSimplicialComplex _ ZZ" -- .670998s elapsed
-- making example results for "inducedSimplicialChainComplexMap" -- .670094s elapsed
-- making example results for "Calculations with random simplicial complexes" -- .69596s elapsed
-- warning: symbol "GradedModuleMap" in OldChainComplexes.Dictionary is shadowed by a symbol in Complexes.Dictionary
-- use the synonym OldChainComplexes$GradedModuleMap
-- warning: symbol "GradedModule" in OldChainComplexes.Dictionary is shadowed by a symbol in Complexes.Dictionary
-- use the synonym OldChainComplexes$GradedModule
-- warning: symbol "res" in OldChainComplexes.Dictionary is shadowed by a symbol in Complexes.Dictionary
-- use one of the synonyms OldChainComplexes$res, OldChainComplexes$resolution
-- warning: symbol "resolution" in OldChainComplexes.Dictionary is shadowed by a symbol in Complexes.Dictionary
-- use one of the synonyms OldChainComplexes$res, OldChainComplexes$resolution
-- warning: symbol "yonedaProduct" in User#"private dictionary" is shadowed by a symbol in Complexes.Dictionary
-- use the synonym yonedaProduct$0
-- warning: symbol "resolutionMap" in User#"private dictionary" is shadowed by a symbol in Complexes.Dictionary
-- use the synonym resolutionMap$0
-- warning: symbol "horseshoeResolution" in User#"private dictionary" is shadowed by a symbol in Complexes.Dictionary
-- use the synonym horseshoeResolution$0
-- warning: symbol "tensorCommutativity" in User#"private dictionary" is shadowed by a symbol in Complexes.Dictionary
-- use the synonym tensorCommutativity$0
-- warning: symbol "torSymmetry" in User#"private dictionary" is shadowed by a symbol in Complexes.Dictionary
-- use the synonym torSymmetry$0
-- warning: symbol "freeResolution" in User#"private dictionary" is shadowed by a symbol in Complexes.Dictionary
-- use the synonym freeResolution$0
-- warning: symbol "connectingExtMap" in User#"private dictionary" is shadowed by a symbol in Complexes.Dictionary
-- use the synonym connectingExtMap$0
-- warning: symbol "connectingTorMap" in User#"private dictionary" is shadowed by a symbol in Complexes.Dictionary
-- use the synonym connectingTorMap$0
-- warning: symbol "yonedaMap" in User#"private dictionary" is shadowed by a symbol in Complexes.Dictionary
-- use the synonym yonedaMap$0
-- warning: symbol "connectingMap" in User#"private dictionary" is shadowed by a symbol in Complexes.Dictionary
-- use the synonym connectingMap$0
-- warning: symbol "isShortExactSequence" in User#"private dictionary" is shadowed by a symbol in Complexes.Dictionary
-- use the synonym isShortExactSequence$0
-- warning: symbol "Complex" in User#"private dictionary" is shadowed by a symbol in Complexes.Dictionary
-- use the synonym Complex$0
-- warning: symbol "ComplexMap" in User#"private dictionary" is shadowed by a symbol in Complexes.Dictionary
-- use the synonym ComplexMap$0
-- warning: symbol "koszulComplex" in User#"private dictionary" is shadowed by a symbol in Complexes.Dictionary
-- use the synonym koszulComplex$0
-- warning: symbol "complex" in User#"private dictionary" is shadowed by a symbol in Complexes.Dictionary
-- use the synonym complex$0
-- warning: symbol "augmentationMap" in User#"private dictionary" is shadowed by a symbol in Complexes.Dictionary
-- use the synonym augmentationMap$0
-- warning: symbol "isComplexMorphism" in User#"private dictionary" is shadowed by a symbol in Complexes.Dictionary
-- use the synonym isComplexMorphism$0
-- warning: symbol "yonedaExtension" in User#"private dictionary" is shadowed by a symbol in Complexes.Dictionary
-- use the synonym yonedaExtension$0
-- warning: symbol "yonedaExtension'" in User#"private dictionary" is shadowed by a symbol in Complexes.Dictionary
-- use the synonym yonedaExtension'$0
-- warning: symbol "yonedaMap'" in User#"private dictionary" is shadowed by a symbol in Complexes.Dictionary
-- use the synonym yonedaMap'$0
-- warning: symbol "component" in User#"private dictionary" is shadowed by a symbol in Complexes.Dictionary
-- use the synonym component$0
-- warning: missing node: randomAbstractSimplicialComplex(...,Verify=>...) cited by randomAbstractSimplicialComplex

o2 = AbstractSimplicialComplexes

o2 : Package

i3 : check "AbstractSimplicialComplexes"
-- capturing check(0, "AbstractSimplicialComplexes") -- .141646s elapsed

Here are two examples to illustrate the improved functionality:

--

i4 : tally apply(1000, i -> #(randomAbstractSimplicialComplex(5,3,2))_2)

o4 = Tally{1 => 11 }
2 => 252
3 => 737

o4 : Tally

i5 :
tally apply(1000, i -> #(randomAbstractSimplicialComplex(5,3,2,Verify=>true))_2)

o5 = Tally{3 => 1000}

o5 : Tally

@n-m-g
Copy link
Contributor Author

n-m-g commented May 17, 2025 via email

@n-m-g n-m-g requested a review from d-torrance May 18, 2025 15:25
@n-m-g
Copy link
Contributor Author

n-m-g commented May 18, 2025 via email

Cosmetic changes as requested.
@n-m-g
Copy link
Contributor Author

n-m-g commented May 20, 2025 via email

Cosmetic changes to the documentation as requested.
@n-m-g
Copy link
Contributor Author

n-m-g commented May 20, 2025

I do trust that this last change will be OK. Do let me know if any additional items are needed.

@n-m-g
Copy link
Contributor Author

n-m-g commented May 20, 2025

Is there a reason that this last workflow failed? Please close this pull request and merge the files. Many thanks.

@n-m-g
Copy link
Contributor Author

n-m-g commented May 21, 2025

Not to bother, but now that the build has passed, is it possible to approve the pull request and resolve the related issues/questions that were asked and motivated the implementation of this increased functionality? Many thanks in advance. Of course, it will be great if this improved functionality will appear in the next mini-M2-release. Many thanks again for your efforts with all of this.

@n-m-g
Copy link
Contributor Author

n-m-g commented May 22, 2025

As I have mentioned this PR can be closed and merge. Here are a few examples to illustrate the current version of the code in the pull request to illustrate the new functionality. Just let me know if you have any additional questions.

--

i2 : tally apply(1000,i->length(randomAbstractSimplicialComplex(5,3,2))_2)

o2 = Tally{1 => 8 }
2 => 287
3 => 705

o2 : Tally

i3 : tally apply(1000,i->length(randomAbstractSimplicialComplex(5,3,2,Verify=>true))_2)

o3 = Tally{3 => 1000}

o3 : Tally

i4 : tally apply(1000,i->length(randomAbstractSimplicialComplex(5,3,2))_1)

o4 = Tally{10 => 1000}

o4 : Tally

--

@n-m-g
Copy link
Contributor Author

n-m-g commented May 25, 2025

Hi,

Just to follow-up again, are you able to merge the PR? Do let me know if you have any additional questions and/or discussions about the newly added functionality. Many thanks.

Best,
Nathan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants