File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 2
2
||| the descriptions and their in-memory representation. This closely matches
3
3
||| the current implementation of format descriptions in Fathom.
4
4
|||
5
- ||| [Induction recusion ](https://en.wikipedia.org/wiki/Induction-recursion) is
5
+ ||| [Induction recursion ](https://en.wikipedia.org/wiki/Induction-recursion) is
6
6
||| where an inductive datatype is defined simultaneously with a function that
7
7
||| operates on that type (see the @Format and @Rep definitions below).
8
8
|||
9
9
||| The universe is ‘closed’ in the sense tha new format descriptions cannot be
10
10
||| added to the type theory, although they can be composed out of other formats)
11
11
|||
12
12
||| This is similar to the approach used when defining type theories with
13
- ||| Tarski-style universes. In-fact inductive-recusrive datatypes as a language
13
+ ||| Tarski-style universes. In-fact inductive-recursive datatypes as a language
14
14
||| feature were apparently originally motivated by this use case (see: [“A
15
15
||| General Formulation of Simultaneous Inductive-Recursive Definitions in Type
16
16
||| Theory”](https://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.6.4575) by
Original file line number Diff line number Diff line change 1
- ||| Experimenting with an approach to extending inductive-recusive format
1
+ ||| Experimenting with an approach to extending inductive-recursive format
2
2
||| descriptions with custom formats.
3
3
4
4
module Fathom.Closed.InductiveRecursiveCustom
@@ -18,7 +18,7 @@ import Fathom.Base
18
18
||| A custom format description.
19
19
|||
20
20
||| We’d prefer to just import `Fathom.Open.Record`, but Idris’ imports are a
21
- ||| bit tempramental and result in ambiguities when importing modules that
21
+ ||| bit temperamental and result in ambiguities when importing modules that
22
22
||| contain types of the same name as those defined in the current module.
23
23
public export
24
24
record CustomFormat where
Original file line number Diff line number Diff line change 1
1
||| Open format universe
2
2
|||
3
3
||| This module defines an open universe of binary format descriptions using
4
- ||| records to define an inderface . By defining formats in this way, the
4
+ ||| records to define an interface . By defining formats in this way, the
5
5
||| universe of formats is open to extension.
6
6
|||
7
- ||| I’m not sure, but this reminds me a little of the ‘coinductive universes’
8
- ||| that [some type theorists were proposing for HoTT ](https://www.cmu.edu/dietrich/philosophy/hott/slides/shulman-2022-05-12.pdf#page=79),
7
+ ||| I’m not sure, but this reminds me a little of the ‘coinductively defined
8
+ ||| universes’ that [some type theorists were proposing](https://www.cmu.edu/dietrich/philosophy/hott/slides/shulman-2022-05-12.pdf#page=79),
9
9
||| but I may be mistaken.
10
10
11
11
module Fathom.Open.Record
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import Fathom.Open.Record as Record
13
13
-- Experiment with converting between the different styles of format universes
14
14
15
15
16
- ||| Convert an inductive-recusive format universe into a record format
16
+ ||| Convert an inductive-recursive format universe into a record format
17
17
public export
18
18
format : IndRec.Format -> Record.Format
19
19
format f = Record . MkFormat
@@ -23,7 +23,7 @@ format f = Record.MkFormat
23
23
}
24
24
25
25
26
- ||| Conver an indexed-inductive format universe into a record format
26
+ ||| Convert an indexed-inductive format universe into a record format
27
27
public export
28
28
formatOf : {Rep : Type } -> Indexed.FormatOf Rep -> Record.Format
29
29
formatOf f = Record . MkFormat
You can’t perform that action at this time.
0 commit comments