Skip to content
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

Basic properties of the flat modality #1005

Closed
wants to merge 52 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
dd745c3
wip
fredrik-bakke Jan 17, 2024
9b2e6c3
wip flat discrete crisp types
fredrik-bakke Jan 17, 2024
8f2f125
fix words
fredrik-bakke Jan 17, 2024
e0ff496
wip flat modality
fredrik-bakke Jan 18, 2024
adec8a7
Types `♭ A` are flat discrete
fredrik-bakke Jan 18, 2024
afaf613
crisp case analysis
fredrik-bakke Jan 18, 2024
ce128fe
misc edits
fredrik-bakke Jan 20, 2024
d2cb662
wip sharp codiscrete types
fredrik-bakke Jan 20, 2024
cdf714d
wip crisp identity types
fredrik-bakke Jan 20, 2024
eb900f4
add document to explain crisp types
fredrik-bakke Jan 20, 2024
622eeb8
WIP The identity types of `♭ A` are flat discrete
fredrik-bakke Jan 20, 2024
694daa1
Rewriting and WIP sharp modality
fredrik-bakke Jan 20, 2024
4b08e0c
post pre-commit
fredrik-bakke Jan 20, 2024
00429c5
Merge branch 'master' into nitpick-mtt
fredrik-bakke Mar 9, 2024
8aeac86
factor out `foundation-core.postcomposition-dependent-functions` (aga…
fredrik-bakke Mar 9, 2024
0b3bdb4
`prod` -> `product`
fredrik-bakke Mar 9, 2024
d576f45
wip
fredrik-bakke Mar 9, 2024
07386d8
wip
fredrik-bakke Mar 10, 2024
1fff63d
wip
fredrik-bakke Mar 10, 2024
2004377
factor `is-injective-retraction`
fredrik-bakke Mar 10, 2024
eb3f6d0
unabstract `is-injective-retraction`
fredrik-bakke Mar 10, 2024
48ec293
refactor duplicate `is-injective-retraction`
fredrik-bakke Mar 10, 2024
72c2c76
refactor duplicate `is-injective-retraction`
fredrik-bakke Mar 10, 2024
cb81f69
corollary 6.3
fredrik-bakke Mar 10, 2024
ea83a88
flat action on homotopies
fredrik-bakke Mar 10, 2024
34152bf
small changes foundation
fredrik-bakke Mar 10, 2024
3ede963
transport along crisp identifications
fredrik-bakke Mar 10, 2024
421d67c
crisp sections of the flat counit, and flat discreteness of identity …
fredrik-bakke Mar 10, 2024
e3c5cc2
clean up crisp cartesian product types
fredrik-bakke Mar 10, 2024
772a03f
`coprod` -> `coproduct`
fredrik-bakke Mar 10, 2024
2fab3e9
crisp types agda module
fredrik-bakke Mar 10, 2024
ce10861
pre-commit
fredrik-bakke Mar 10, 2024
5b9083c
fix some typos
fredrik-bakke Mar 10, 2024
09233cd
`is-crisp-section-crisp-ap-cons-flat`
fredrik-bakke Mar 10, 2024
06aeba1
Flat discrete crisp types are closed under crisp equivalences
fredrik-bakke Mar 10, 2024
72e74f7
crisp injective maps
fredrik-bakke Mar 10, 2024
4f4b532
crisp pullbacks
fredrik-bakke Mar 10, 2024
e5a20ec
Merge branch 'master' into nitpick-mtt
fredrik-bakke Mar 10, 2024
f717844
The action on identifications of crisp functions
fredrik-bakke Mar 10, 2024
4d4370a
wip
fredrik-bakke Mar 14, 2024
d217592
Add NodeJS to the devshell (#1064)
VojtechStep Mar 11, 2024
afe7813
Refactor category theory to use strictly involutive identity types (#…
fredrik-bakke Mar 11, 2024
5a2bf0d
Bibliographies (#1058)
fredrik-bakke Mar 11, 2024
b5eca8e
Fail the website build on malformed concept macro invocations (#1066)
VojtechStep Mar 12, 2024
ebfe470
Add link to benchmarks in GitHub readme (#1063)
fredrik-bakke Mar 12, 2024
e32e305
Refactoring pointed types (#1056)
EgbertRijke Mar 13, 2024
cd8adbe
Escape Agda definitions when translating them to regex (#1074)
VojtechStep Mar 14, 2024
1b5266a
Move torsoriality of the identity type to `foundation-core.torsorial-…
EgbertRijke Mar 14, 2024
a6aeb45
wip
fredrik-bakke Jan 17, 2024
5dbede0
wip flat modality
fredrik-bakke Jan 18, 2024
665a92a
add document to explain crisp types
fredrik-bakke Jan 20, 2024
d4569d6
Rewriting and WIP sharp modality
fredrik-bakke Jan 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 10 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,22 @@ jobs:
crate: mdbook-linkcheck
version: '0.7.7'

# Install Python and friends for website generation only where needed
- uses: actions/setup-python@v4
with:
python-version: '3.8'
check-latest: true
cache: 'pip'

- run: python3 -m pip install -r master/scripts/requirements.txt

- uses: actions/cache/restore@v3
with:
key: pre-website-${{ github.run_id }}
path: master/docs

# Tell mdbook to use only the linkcheck backend
- name: Check website links
- name: Check website links and bibtex references
env:
MDBOOK_OUTPUT: '{"linkcheck":{}}'
run: |
Expand Down
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@

"[python]": {
"editor.tabSize": 4,
"editor.defaultFormatter": "ms-python.python"
"editor.defaultFormatter": null,
"editor.formatOnSave": false,
"editor.formatOnType": false,
"editor.formatOnPaste": false
}
}
41 changes: 41 additions & 0 deletions CITING-SOURCES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Citing sources

All of the references and sources of the agda-unimath library are managed in a
[BibLaTeX](https://www.ctan.org/pkg/biblatex) file `references.bib`, and we have
a custom set of macros to work with them.

The macros are as follows:

<!--
We have inserted an invisible whitespace character between the first and second
opening curly braces in the below examples to block the citation preprocessor
from detecting them as macros.
-->

- `{­{#cite referenceXYZ}}` will insert a citation to the reference labeled
`referenceXYZ` (which must be defined in the `references.bib` file) at the
current location, and add that reference to the current page's bibliography.
- `{­{#reference referenceXYZ}}` will add the reference labeled `referenceXYZ`
to the current page's bibliography without inserting a citation.
- `{­{#bibliography}}` is a marker for where the bibliography of the current
page should be inserted. If no such marker is found and the bibliography is
inhabited, it will be inserted at the bottom of the page in a new section
titled `References`.

Note that entries in the BibLaTeX file are expected to have all of the
apropriate fields defined according to their type. For instance, `@book`s _must_
have a defined field for `publisher` and `year`. If this information is not
available, please define them as empty fields. E.g. `publisher = {},`.

If you are unsure about how to structure your BibLaTeX entry, it may be useful
to know that the references are checked by the `linkcheck` GitHub workflow, so
when you post your pull request to `agda-unimath` you can refer to the CI for
possible issues.

**Note:** If the citation label of your reference is not being generated
properly, we support a custom `citeas` field that can be used to overwrite it.
For instance, _Homotopy Type Theory: Univalent Foundations of Mathematics_
should be cited as {{#cite UF13}}, and to make it so we have set
`citeas = {UF13}` for its BibLaTeX entry. Keep in mind that if the citation
label is not being generated properly, then it is likely that the author list is
not being parsed properly either.
4 changes: 2 additions & 2 deletions HOWTO-INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ In order to contribute to the `agda-unimath` library you will additionally need:
1. `git`
2. `make`
3. `python` version 3.8 or newer
4. The python libraries `pre-commit`, `requests` and `tomli`. Those can be
installed by running
4. The python libraries `pre-commit`, `pybtex`, `requests` and `tomli`. Those
can be installed by running
```shell
python3 -m pip install -r scripts/requirements.txt
```
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ TIME ?= time
METAFILES := \
ART.md \
CITE-THIS-LIBRARY.md \
CITING-SOURCES.md \
CODINGSTYLE.md \
CONTRIBUTING.md \
CONTRIBUTORS.md \
Expand All @@ -49,7 +50,7 @@ METAFILES := \
STATEMENT-OF-INCLUSION.md \
SUMMARY.md \
TEMPLATE.lagda.md \
USERS.md \
USERS.md

.PHONY: agdaFiles
agdaFiles:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ welcome contributions to the library about any topic in mathematics.
1. [The agda-unimath website](https://unimath.github.io/agda-unimath/)
2. [Discord](https://discord.gg/Zp2e8hYsuX)
3. [Twitch](https://www.twitch.tv/agdaunimath)
4. [Benchmarks](https://agda-unimath-benchmarks.netlify.app/)
6 changes: 0 additions & 6 deletions TEMPLATE.lagda.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,3 @@ concept-subconcept = ...

- An instructive example of a file with the expected structure is
[`order-theory.galois-connections`](https://raw.githubusercontent.com/UniMath/agda-unimath/master/src/order-theory/galois-connections.lagda.md).

## References

1. Univalent Foundations Project, _Homotopy Type Theory – Univalent Foundations
of Mathematics_ (2013) ([website](https://homotopytypetheory.org/book/),
[arXiv:1308.0729](https://arxiv.org/abs/1308.0729))
9 changes: 9 additions & 0 deletions book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ output-file = "docs/concept_index.json"
mathswitch-template = "https://mathswitch.xyz/concept/Wd/{wikidata_id}"
wikidata-template = "https://www.wikidata.org/entity/{wikidata_id}"

[preprocessor.citations]
command = "python3 ./scripts/preprocessor_citations.py"
bibtex_file = "references.bib"
citation_style = "alpha"
citation_label_style = "custom_alpha"
error_on_unmatched_keys = true
before = [ "git-metadata" ]

[output.linkcheck]
follow-web-links = false

Expand All @@ -62,6 +70,7 @@ additional-css = [
"website/css/Agda.css",
"website/css/Agda-highlight.css",
"website/css/agda-logo.css",
"website/css/bibliography.css",
"theme/catppuccin.css",
"theme/catppuccin-admonish.css",
"theme/pagetoc.css",
Expand Down
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
python = pkgs.python38.withPackages (p: with p; [
# Keep in sync with scripts/requirements.txt
# pre-commit <- not installed as a Python package but as a binary below
pybtex
requests
tomli
]);
Expand Down Expand Up @@ -74,6 +75,7 @@
python
# pre-commit checks
pkgs.pre-commit
pkgs.nodejs
] ++ (with pkgs-mdbook; [
# working on the website
mdbook
Expand Down
Loading