Skip to content

Commit

Permalink
[FTheoryTools] Inform the user about assumed Kbar grading
Browse files Browse the repository at this point in the history
  • Loading branch information
HereAround committed Jul 12, 2023
1 parent 14867fc commit 0cfa016
Show file tree
Hide file tree
Showing 11 changed files with 129 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ julia> p = x^3 - y^2 - x * y * z * a1 + x^2 * z^2 * a21 * w - y * z^3 * a32 * w^
-a1*x*y*z + a21*w*x^2*z^2 - a32*w^2*y*z^3 + a43*w^3*x*z^4 + a65*w^5*z^6 + x^3 - y^2
julia> h = hypersurface_model(auxiliary_base_vars, auxiliary_base_grading, d, fiber_ambient_space, D1, D2, p)
Assuming that the first row of the given grading is the grading under Kbar
Hypersurface model over a not fully specified base
```
"""
Expand Down Expand Up @@ -254,6 +256,9 @@ function hypersurface_model(auxiliary_base_vars::Vector{String}, auxiliary_base_
@req union(set_base_vars, set_fiber_vars) == set_p_vars "Variables names for polynomial p do not match variable choice for base and fiber"
@req ncols(auxiliary_base_grading) == length(auxiliary_base_vars) "Number of base variables does not match the number of provided base gradings"

# inform about the assume Kbar grading
print("Assuming that the first row of the given grading is the grading under Kbar\n\n")

Check warning on line 260 in experimental/FTheoryTools/src/HypersurfaceModels/constructors.jl

View check run for this annotation

Codecov / codecov/patch

experimental/FTheoryTools/src/HypersurfaceModels/constructors.jl#L260

Added line #L260 was not covered by tests

# Construct auxiliary base space
auxiliary_base_space = _auxiliary_base_space(auxiliary_base_vars, auxiliary_base_grading, d)

Check warning on line 263 in experimental/FTheoryTools/src/HypersurfaceModels/constructors.jl

View check run for this annotation

Codecov / codecov/patch

experimental/FTheoryTools/src/HypersurfaceModels/constructors.jl#L263

Added line #L263 was not covered by tests

Expand Down
56 changes: 56 additions & 0 deletions experimental/FTheoryTools/src/LiteratureModels/attributes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ known, an error is raised.
```jldoctest
julia> m = literature_model(arxiv_id = "1109.3454", equation = "3.1")
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> arxiv_id(m)
Expand All @@ -31,6 +33,8 @@ known, an error is raised.
```jldoctest
julia> m = literature_model(arxiv_id = "1109.3454", equation = "3.1")
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> arxiv_doi(m)
Expand All @@ -51,6 +55,8 @@ If no `arxiv_link` is known, an error is raised.
```jldoctest
julia> m = literature_model(arxiv_id = "1109.3454", equation = "3.1")
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> arxiv_link(m)
Expand All @@ -71,6 +77,8 @@ is known, an error is raised.
```jldoctest
julia> m = literature_model(arxiv_id = "1109.3454", equation = "3.1")
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> arxiv_model_equation_number(m)
Expand All @@ -91,6 +99,8 @@ is known, an error is raised.
```jldoctest
julia> m = literature_model(arxiv_id = "1109.3454", equation = "3.1")
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> arxiv_model_page(m)
Expand All @@ -111,6 +121,8 @@ is known, an error is raised.
```jldoctest
julia> m = literature_model(arxiv_id = "1109.3454", equation = "3.1")
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> arxiv_model_section(m)
Expand All @@ -131,6 +143,8 @@ introduced the given model. If no
```jldoctest
julia> m = literature_model(arxiv_id = "1109.3454", equation = "3.1")
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> arxiv_version(m)
Expand Down Expand Up @@ -165,6 +179,8 @@ an error is raised.
```jldoctest
julia> m = literature_model(arxiv_id = "1109.3454", equation = "3.1")
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> generating_sections(m)
Expand All @@ -186,6 +202,8 @@ known, an error is raised.
```jldoctest
julia> m = literature_model(arxiv_id = "1109.3454", equation = "3.1")
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> journal_doi(m)
Expand All @@ -206,6 +224,8 @@ If no `journal_link` is known, an error is raised.
```jldoctest
julia> m = literature_model(arxiv_id = "1109.3454", equation = "3.1")
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> journal_link(m)
Expand All @@ -226,6 +246,8 @@ is known, an error is raised.
```jldoctest
julia> m = literature_model(arxiv_id = "1109.3454", equation = "3.1")
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> journal_model_equation_number(m)
Expand All @@ -246,6 +268,8 @@ is known, an error is raised.
```jldoctest
julia> m = literature_model(arxiv_id = "1109.3454", equation = "3.1")
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> journal_model_page(m)
Expand All @@ -266,6 +290,8 @@ is known, an error is raised.
```jldoctest
julia> m = literature_model(arxiv_id = "1109.3454", equation = "3.1")
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> journal_model_section(m)
Expand All @@ -285,6 +311,8 @@ If no `journal_pages` are known, an error is raised.
```jldoctest
julia> m = literature_model(arxiv_id = "1109.3454", equation = "3.1")
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> journal_pages(m)
Expand Down Expand Up @@ -315,6 +343,8 @@ If no `journal_volume` are known, an error is raised.
```jldoctest
julia> m = literature_model(arxiv_id = "1109.3454", equation = "3.1")
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> journal_volume(m)
Expand All @@ -334,6 +364,8 @@ If no `journal_year` is known, an error is raised.
```jldoctest
julia> m = literature_model(arxiv_id = "1109.3454", equation = "3.1")
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> journal_year(m)
Expand All @@ -354,6 +386,8 @@ If no `literature_identifier` is known, an error is raised.
```jldoctest
julia> m = literature_model(arxiv_id = "1109.3454", equation = "3.1")
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> literature_identifier(m)
Expand All @@ -373,6 +407,8 @@ If no `model_description` is known, an error is raised.
```jldoctest
julia> m = literature_model(arxiv_id = "1109.3454", equation = "3.1")
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> model_description(m)
Expand All @@ -392,6 +428,8 @@ If no `paper_authors` are known, an error is raised.
```jldoctest
julia> m = literature_model(arxiv_id = "1109.3454", equation = "3.1")
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> paper_authors(m)
Expand All @@ -414,6 +452,8 @@ If no `paper_buzzwords` are known, an error is raised.
```jldoctest
julia> m = literature_model(arxiv_id = "1109.3454", equation = "3.1")
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> paper_buzzwords(m)
Expand All @@ -437,6 +477,8 @@ If no `paper_description` is known, an error is raised.
```jldoctest
julia> m = literature_model(arxiv_id = "1109.3454", equation = "3.1")
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> paper_description(m)
Expand All @@ -456,6 +498,8 @@ If no `paper_title` is known, an error is raised.
```jldoctest
julia> m = literature_model(arxiv_id = "1109.3454", equation = "3.1")
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> paper_title(m)
Expand Down Expand Up @@ -505,6 +549,8 @@ If no resolutions are known, an error is raised.
```jldoctest
julia> m = literature_model(arxiv_id = "1109.3454", equation = "3.1")
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> resolutions(m)
Expand All @@ -529,6 +575,8 @@ If no resolution generating sections are known, an error is raised.
```jldoctest
julia> m = literature_model(arxiv_id = "1109.3454", equation = "3.1")
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> resolution_generating_sections(m)
Expand All @@ -551,6 +599,8 @@ If no resolution zero sections are known, an error is raised.
```jldoctest
julia> m = literature_model(arxiv_id = "1109.3454", equation = "3.1")
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> resolution_zero_sections(m)
Expand All @@ -571,6 +621,8 @@ If no weighted resolutions are known, an error is raised.
```jldoctest
julia> m = literature_model(arxiv_id = "1109.3454", equation = "3.1")
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> weighted_resolutions(m)
Expand All @@ -595,6 +647,8 @@ If no weighted resolution generating sections are known, an error is raised.
```jldoctest
julia> m = literature_model(arxiv_id = "1109.3454", equation = "3.1")
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> weighted_resolution_generating_sections(m)
Expand All @@ -617,6 +671,8 @@ If no weighted resolution zero sections are known, an error is raised.
```jldoctest
julia> m = literature_model(arxiv_id = "1109.3454", equation = "3.1")
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> weighted_resolution_zero_sections(m)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ provided information, then an error is raised.
```jldoctest
julia> t = literature_model(arxiv_id = "1109.3454", equation = "3.1")
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> v = ambient_space(t)
Expand Down
6 changes: 6 additions & 0 deletions experimental/FTheoryTools/src/LiteratureModels/methods.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Set a description for a model.
```jldoctest
julia> m = literature_model(arxiv_id = "1109.3454", equation = "3.1")
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> set_description(m, "An SU(5)xU(1) GUT-model")
Expand All @@ -33,6 +35,8 @@ Add a known resolution for a model.
```jldoctest
julia> m = literature_model(arxiv_id = "1109.3454", equation = "3.1")
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> add_resolution(m, [["x", "y"], ["y", "s", "w"], ["s", "e4"], ["s", "e3"], ["s", "e1"]], ["s", "w", "e3", "e1", "e2"])
Expand Down Expand Up @@ -71,6 +75,8 @@ We hope to remove this requirement in the near future.
```jldoctest
julia> m = literature_model(arxiv_id = "1109.3454", equation = "3.1")
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(5)xU(1) restricted Tate model based on arXiv paper 1109.3454 Eq. (3.1)
julia> v = resolve(m, 1)
Expand Down

0 comments on commit 0cfa016

Please sign in to comment.