/
attributes.jl
944 lines (706 loc) · 30.7 KB
/
attributes.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
##########################################
### (1) General attributes
##########################################
@doc raw"""
base_space(m::AbstractFTheoryModel)
Return the base space of the F-theory 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> base_space(m)
A family of spaces of dimension d = 3
```
"""
function base_space(m::AbstractFTheoryModel)
is_base_space_fully_specified(m) || @vprint :FTheoryModelPrinter 1 "Base space was not fully specified. Returning AUXILIARY base space.\n"
return m.base_space
end
@doc raw"""
ambient_space(m::AbstractFTheoryModel)
Return the ambient space of the F-theory 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> ambient_space(m)
A family of spaces of dimension d = 5
```
"""
function ambient_space(m::AbstractFTheoryModel)
is_base_space_fully_specified(m) || @vprint :FTheoryModelPrinter 1 "Base space was not fully specified. Returning AUXILIARY ambient space.\n"
return m.ambient_space
end
@doc raw"""
fiber_ambient_space(m::AbstractFTheoryModel)
Return the fiber ambient space of an F-theory model.
```jldoctest
julia> t = su5_tate_model_over_arbitrary_3d_base()
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base
julia> fiber_ambient_space(t)
Normal toric variety
```
"""
function fiber_ambient_space(m::AbstractFTheoryModel)
@req hasfield(typeof(m), :fiber_ambient_space) "fiber_ambient_space not supported for this F-theory model"
return m.fiber_ambient_space
end
@doc raw"""
explicit_model_sections(m::AbstractFTheoryModel)
Return the model sections in explicit form, that
is as polynomials of the base space coordinates.
```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> explicit_model_sections(t)
Dict{String, QQMPolyRingElem} with 9 entries:
"a6" => 0
"a21" => a21
"a3" => w^2*a32
"w" => w
"a2" => w*a21
"a1" => a1
"a4" => w^3*a43
"a43" => a43
"a32" => a32
```
"""
function explicit_model_sections(m::AbstractFTheoryModel)
@req hasfield(typeof(m), :explicit_model_sections) "explicit_model_sections not supported for this F-theory model"
return m.explicit_model_sections
end
@doc raw"""
defining_section_parametrization(m::AbstractFTheoryModel)
Return the model sections in explicit form, that
is as polynomials of the base space coordinates.
```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> defining_section_parametrization(t)
Dict{String, MPolyRingElem} with 4 entries:
"a6" => 0
"a3" => w^2*a32
"a2" => w*a21
"a4" => w^3*a43
```
"""
function defining_section_parametrization(m::AbstractFTheoryModel)
@req hasfield(typeof(m), :defining_section_parametrization) "defining_section_parametrization not supported for this F-theory model"
return m.defining_section_parametrization
end
##########################################
### (2) Meta data attributes
##########################################
@doc raw"""
arxiv_id(m::AbstractFTheoryModel)
Return the `arxiv_id` of the preprint that introduced
the given model. If no `arxiv_id` 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_id(m)
"1109.3454"
```
"""
function arxiv_id(m::AbstractFTheoryModel)
@req has_arxiv_id(m) "No arxiv identifier known for this model"
return get_attribute(m, :arxiv_id)
end
@doc raw"""
arxiv_doi(m::AbstractFTheoryModel)
Return the `arxiv_doi` of the preprint that introduced
the given model. If no `arxiv_doi` 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_doi(m)
"10.48550/arXiv.1109.3454"
```
"""
function arxiv_doi(m::AbstractFTheoryModel)
@req has_arxiv_doi(m) "No arXiv DOI known for this model"
return get_attribute(m, :arxiv_doi)
end
@doc raw"""
arxiv_link(m::AbstractFTheoryModel)
Return the `arxiv_link` (formatted as string) to the arXiv
version of the paper that introduced the given model.
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)
"https://arxiv.org/abs/1109.3454v2"
```
"""
function arxiv_link(m::AbstractFTheoryModel)
@req has_arxiv_link(m) "No arXiv link known for this model"
return get_attribute(m, :arxiv_link)
end
@doc raw"""
arxiv_model_equation_number(m::AbstractFTheoryModel)
Return the `arxiv_model_equation_number` in which the given model was introduced
in the arXiv preprint in our record. If no `arxiv_model_equation_number`
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)
"3.1"
```
"""
function arxiv_model_equation_number(m::AbstractFTheoryModel)
@req has_arxiv_model_equation_number(m) "No arXiv equation number known for this model"
return get_attribute(m, :arxiv_model_equation_number)
end
@doc raw"""
arxiv_model_page(m::AbstractFTheoryModel)
Return the `arxiv_model_page` on which the given model was introduced
in the arXiv preprint in our record. If no `arxiv_model_page`
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)
"10"
```
"""
function arxiv_model_page(m::AbstractFTheoryModel)
@req has_arxiv_model_page(m) "No arXiv page number known for this model"
return get_attribute(m, :arxiv_model_page)
end
@doc raw"""
arxiv_model_section(m::AbstractFTheoryModel)
Return the `arxiv_model_section` in which the given model was introduced
in the arXiv preprint in our record. If no `arxiv_model_section`
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)
"3"
```
"""
function arxiv_model_section(m::AbstractFTheoryModel)
@req has_arxiv_model_section(m) "No arXiv section number known for this model"
return get_attribute(m, :arxiv_model_section)
end
@doc raw"""
arxiv_version(m::AbstractFTheoryModel)
Return the `arxiv_version` of the arXiv preprint that
introduced the given model. If no
`arxiv_version` 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_version(m)
"2"
```
"""
function arxiv_version(m::AbstractFTheoryModel)
@req has_arxiv_version(m) "No arXiv version known for this model"
return get_attribute(m, :arxiv_version)
end
@doc raw"""
associated_literature_models(m::AbstractFTheoryModel)
Return a list of the unique identifiers any `associated_literature_models` of
the given model. These are either other presentations (Weierstrass, Tate, ...)
of the given model, or other version of the same model from a different paper
in the literature. If no `associated_literature_models` are known,
an error is raised.
```jldoctest
julia> m = literature_model(arxiv_id = "1507.05954", equation = "A.1")
Assuming that the first row of the given grading is the grading under Kbar
Weierstrass model over a not fully specified base -- U(1)xU(1) Weierstrass model based on arXiv paper 1507.05954 Eq. (A.1)
julia> associated_literature_models(m)
1-element Vector{String}:
"1507_05954-1"
```
"""
function associated_literature_models(m::AbstractFTheoryModel)
@req has_associated_literature_models(m) "No associated models known for this model"
return get_attribute(m, :associated_literature_models)
end
@doc raw"""
journal_doi(m::AbstractFTheoryModel)
Return the `journal_doi` of the publication that introduced
the given model. If no `journal_doi` 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_doi(m)
"10.1016/j.nuclphysb.2011.12.013"
```
"""
function journal_doi(m::AbstractFTheoryModel)
@req has_journal_doi(m) "No journal DOI known for this model"
return get_attribute(m, :journal_doi)
end
@doc raw"""
journal_link(m::AbstractFTheoryModel)
Return the `journal_link` (formatted as string) to the published
version of the paper that introduced the given model.
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)
"https://www.sciencedirect.com/science/article/pii/S0550321311007115"
```
"""
function journal_link(m::AbstractFTheoryModel)
@req has_journal_link(m) "No journal link known for this model"
return get_attribute(m, :journal_link)
end
@doc raw"""
journal_model_equation_number(m::AbstractFTheoryModel)
Return the `journal_model_equation_number` in which the given model was introduced
in the published paper in our record. If no `journal_model_equation_number`
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)
"3.1"
```
"""
function journal_model_equation_number(m::AbstractFTheoryModel)
@req has_journal_model_equation_number(m) "No journal equation number known for this model"
return get_attribute(m, :journal_model_equation_number)
end
@doc raw"""
journal_model_page(m::AbstractFTheoryModel)
Return the `journal_model_page` on which the given model was introduced
in the published paper in our record. If no `journal_model_page`
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)
"9"
```
"""
function journal_model_page(m::AbstractFTheoryModel)
@req has_journal_model_page(m) "No journal page number known for this model"
return get_attribute(m, :journal_model_page)
end
@doc raw"""
journal_model_section(m::AbstractFTheoryModel)
Return the `journal_model_section` in which the given model was introduced
in the published paper in our record. If no `journal_model_section`
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)
"3"
```
"""
function journal_model_section(m::AbstractFTheoryModel)
@req has_journal_model_section(m) "No journal section number known for this model"
return get_attribute(m, :journal_model_section)
end
@doc raw"""
journal_pages(m::AbstractFTheoryModel)
Return the `journal_pages` of the published paper in which the given model was introduced.
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)
"1–47"
```
"""
function journal_pages(m::AbstractFTheoryModel)
@req has_journal_pages(m) "No journal pages known for this model"
return get_attribute(m, :journal_pages)
end
@doc raw"""
journal_report_numbers(m::AbstractFTheoryModel)
Return the `journal_report_numbers` of the published paper in which the given model was introduced.
If no `journal_report_numbers` is known, an error is raised.
```jldoctest
julia> m = literature_model(arxiv_id = "1507.05954", equation = "A.1")
Assuming that the first row of the given grading is the grading under Kbar
Weierstrass model over a not fully specified base -- U(1)xU(1) Weierstrass model based on arXiv paper 1507.05954 Eq. (A.1)
julia> journal_report_numbers(m)
3-element Vector{String}:
"UPR-1274-T"
"CERN-PH-TH-2015-157"
"MIT-CTP-4678"
```
"""
function journal_report_numbers(m::AbstractFTheoryModel)
@req has_journal_report_numbers(m) "No journal report numbers known for this model"
return get_attribute(m, :journal_report_numbers)
end
@doc raw"""
journal_volume(m::AbstractFTheoryModel)
Return the `journal_volume` of the published paper in which the given model was introduced.
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)
"858"
```
"""
function journal_volume(m::AbstractFTheoryModel)
@req has_journal_volume(m) "No journal volume known for this model"
return get_attribute(m, :journal_volume)
end
@doc raw"""
journal_name(m::AbstractFTheoryModel)
Return the `journal_volume` of the published paper in which the given model was introduced.
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)
"858"
```
"""
function journal_name(m::AbstractFTheoryModel)
@req has_journal_name(m) "No journal volume known for this model"
return get_attribute(m, :journal_name)
end
@doc raw"""
journal_year(m::AbstractFTheoryModel)
Return the `journal_year` of the published paper in which the given model was introduced.
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)
"2012"
```
"""
function journal_year(m::AbstractFTheoryModel)
@req has_journal_year(m) "No journal year known for this model"
return get_attribute(m, :journal_year)
end
@doc raw"""
literature_identifier(m::AbstractFTheoryModel)
Return the `literature_identifier` of the given mode, which is a unique string
that distinguishes the model from all others in the literature model database.
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)
"1109_3454"
```
"""
function literature_identifier(m::AbstractFTheoryModel)
@req has_literature_identifier(m) "No literature identifier known for this model"
return get_attribute(m, :literature_identifier)
end
@doc raw"""
model_description(m::AbstractFTheoryModel)
Return the `model_description` of the given model.
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)
"SU(5)xU(1) restricted Tate model"
```
"""
function model_description(m::AbstractFTheoryModel)
@req has_model_description(m) "No model description known for this model"
return get_attribute(m, :model_description)
end
@doc raw"""
model_parameters(m::AbstractFTheoryModel)
Return the `model_parameters` of the given model.
If no `model_parameters` are known, an error is raised.
```jldoctest
julia> m = literature_model(arxiv_id = "1212.2949", equation = "3.2", model_parameters = Dict("k" => 5))
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(2k+1) Tate model with parameter values (k = 5) based on arXiv paper 1212.2949 Eq. (3.2)
julia> model_parameters(m)
Dict{String, Int64} with 1 entry:
"k" => 5
```
"""
function model_parameters(m::AbstractFTheoryModel)
@req has_model_parameters(m) "No model parameters known for this model"
return get_attribute(m, :model_parameters)
end
@doc raw"""
paper_authors(m::AbstractFTheoryModel)
Return the `paper_authors` of the paper that introduced the given model.
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)
3-element Vector{String}:
"Sven Krause"
"Christoph Mayrhofer"
"Timo Weigand"
```
"""
function paper_authors(m::AbstractFTheoryModel)
@req has_paper_authors(m) "No paper authors known for this model"
return get_attribute(m, :paper_authors)
end
@doc raw"""
paper_buzzwords(m::AbstractFTheoryModel)
Return the `paper_buzzwords` of the paper that introduced the given model.
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)
4-element Vector{String}:
"GUT model"
"Tate"
"U(1)"
"SU(5)"
```
"""
function paper_buzzwords(m::AbstractFTheoryModel)
@req has_paper_buzzwords(m) "No paper buzzwords known for this model"
return get_attribute(m, :paper_buzzwords)
end
@doc raw"""
paper_description(m::AbstractFTheoryModel)
Return the `paper_description` of the paper that introduced the given model.
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)
"SU(5)xU(1) restricted Tate model"
```
"""
function paper_description(m::AbstractFTheoryModel)
@req has_paper_description(m) "No paper description known for this model"
return get_attribute(m, :paper_description)
end
@doc raw"""
paper_title(m::AbstractFTheoryModel)
Return the `paper_title` of the arXiv preprint that introduced the given model.
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)
"\$G_4\$ flux, chiral matter and singularity resolution in F-theory compactifications"
```
"""
function paper_title(m::AbstractFTheoryModel)
@req has_paper_title(m) "No paper title known for this model"
return get_attribute(m, :paper_title)
end
@doc raw"""
related_literature_models(m::AbstractFTheoryModel)
Return a list of the unique identifiers of any `related_literature_models` of
the given model. These are models that are introduced in the same paper as
the given model, but that are distinct from the given model. If no
`related_literature_models` are known, an error is raised.
```jldoctest
julia> m = literature_model(arxiv_id = "1212.2949", equation = "3.2", model_parameters = Dict("k" => 5))
Assuming that the first row of the given grading is the grading under Kbar
Global Tate model over a not fully specified base -- SU(2k+1) Tate model with parameter values (k = 5) based on arXiv paper 1212.2949 Eq. (3.2)
julia> related_literature_models(m)
6-element Vector{String}:
"1212_2949-2"
"1212_2949-3"
"1212_2949-4"
"1212_2949-5"
"1212_2949-6"
"1212_2949-7"
```
"""
function related_literature_models(m::AbstractFTheoryModel)
@req has_related_literature_models(m) "No related models known for this model"
return get_attribute(m, :related_literature_models)
end
##########################################
### (3) Specialized model attributes
##########################################
@doc raw"""
generating_sections(m::AbstractFTheoryModel)
Return a list of the known Mordell–Weil generating sections of
the given model. If no 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> generating_sections(m)
1-element Vector{Vector{QQMPolyRingElem}}:
[0, 0, 1]
```
"""
function generating_sections(m::AbstractFTheoryModel)
@req has_generating_sections(m) "No generating sections known for this model"
return get_attribute(m, :generating_sections)
end
@doc raw"""
resolutions(m::AbstractFTheoryModel)
Return the list of all known resolutions for the given model.
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)
1-element Vector{Vector{Vector}}:
[[["x", "y", "w"], ["y", "e1"], ["x", "e4"], ["y", "e2"], ["x", "y"]], ["e1", "e4", "e2", "e3", "s"]]
```
"""
function resolutions(m::AbstractFTheoryModel)
@req has_resolutions(m) "No resolutions known for this model"
return get_attribute(m, :resolutions)
end
@doc raw"""
resolution_generating_sections(m::AbstractFTheoryModel)
Return a list of lists of known Mordell–Weil generating sections
for the given model after each known resolution. Each element of
the outer list corresponds to a known resolution (in the same order),
and each element of the list associated to a given resolution
corresponds to a known generating section (in the same order).
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)
1-element Vector{Vector{Vector{Vector{QQMPolyRingElem}}}}:
[[[0, 0, 1], [0, 0, 1], [0, 1], [0, 1], [0, 1], [a32, -a43]]]
```
"""
function resolution_generating_sections(m::AbstractFTheoryModel)
@req has_resolution_generating_sections(m) "No resolution generating sections known for this model"
return get_attribute(m, :resolution_generating_sections)
end
@doc raw"""
resolution_zero_sections(m::AbstractFTheoryModel)
Return a list of known Mordell–Weil zero sections for the
given model after each known resolution. Each element of the
list corresponds to a known resolution (in the same order).
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)
1-element Vector{Vector{Vector{QQMPolyRingElem}}}:
[[1, 1, 0], [1, 1, w], [1, 1], [1, 1], [1, 1], [1, 1]]
```
"""
function resolution_zero_sections(m::AbstractFTheoryModel)
@req has_resolution_zero_sections(m) "No resolution zero sections known for this model"
return get_attribute(m, :resolution_zero_sections)
end
@doc raw"""
weighted_resolutions(m::AbstractFTheoryModel)
Return the list of all known weighted resolutions for the given model.
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)
1-element Vector{Vector{Vector}}:
[Vector{Vector{Any}}[[["x", "y", "w"], [1, 1, 1]], [["x", "y", "w"], [1, 2, 1]], [["x", "y", "w"], [2, 2, 1]], [["x", "y", "w"], [2, 3, 1]], [["x", "y"], [1, 1]]], ["e1", "e4", "e2", "e3", "s"]]
```
"""
function weighted_resolutions(m::AbstractFTheoryModel)
@req has_weighted_resolutions(m) "No weighted resolutions known for this model"
return get_attribute(m, :weighted_resolutions)
end
@doc raw"""
weighted_resolution_generating_sections(m::AbstractFTheoryModel)
Return a list of lists of known Mordell–Weil generating sections
for the given model after each known weighted resolution. Each element of
the outer list corresponds to a known weighted resolution (in the same order),
and each element of the list associated to a given weighted resolution
corresponds to a known generating section (in the same order).
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)
1-element Vector{Vector{Vector{Vector{QQMPolyRingElem}}}}:
[[[0, 0, 1], [0, 0, 1], [0, 0, 1], [0, 0, 1], [0, 0, 1], [a32, -a43]]]
```
"""
function weighted_resolution_generating_sections(m::AbstractFTheoryModel)
@req has_weighted_resolution_generating_sections(m) "No weighted resolution generating sections known for this model"
return get_attribute(m, :weighted_resolution_generating_sections)
end
@doc raw"""
weighted_resolution_zero_sections(m::AbstractFTheoryModel)
Return a list of known Mordell–Weil zero sections for the
given model after each known weighted resolution. Each element of the
list corresponds to a known weighted resolution (in the same order).
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)
1-element Vector{Vector{Vector{QQMPolyRingElem}}}:
[[1, 1, 0], [1, 1, w], [1, 1, w], [1, 1, w], [1, 1, w], [1, 1]]
```
"""
function weighted_resolution_zero_sections(m::AbstractFTheoryModel)
@req has_weighted_resolution_zero_sections(m) "No weighted resolution zero sections known for this model"
return get_attribute(m, :weighted_resolution_zero_sections)
end
# This example cannot be used until we support literature hypersurface models
# At that point, we should simply be able to uncomment this block
@doc raw"""
zero_section(m::AbstractFTheoryModel)
Return the zero section of the given model.
If no zero section is known, an error is raised.
This information is not typically stored as an attribute for
Weierstrass and global Tate models, whose zero sections are known.
```jldoctest
julia> h = literature_model(arxiv_id = "1208.2695", equation = "B.5")
Assuming that the first row of the given grading is the grading under Kbar
Hypersurface model over a not fully specified base
julia> zero_section(h)
3-element Vector{QQMPolyRingElem}:
0
1
0
```
"""
function zero_section(m::AbstractFTheoryModel)
@req has_zero_section(m) "No zero section stored for this model"
return get_attribute(m, :zero_section)
end