Skip to content

Commit

Permalink
table of renamings
Browse files Browse the repository at this point in the history
  • Loading branch information
awalterschulze committed Aug 28, 2024
1 parent 55492f7 commit ef4b2f2
Showing 1 changed file with 38 additions and 4 deletions.
42 changes: 38 additions & 4 deletions Katydid/Conal/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,44 @@ The goals of this project are to:

Simply renamings:

- `Set` in Agda is `Type` in Lean.
- universe levels is `` in Agda and `u` in Lean.
- parametric types in Agda is `A` and `\alpha` in Lean.
<table>
<tr>
<td>Description</td>
<td>Original Agda</td>
<td>Translated Lean</td>
</tr>
<tr>
<td></td>
<td>`Set`</td>
<td>`Type`</td>
</tr>
<tr>
<td>universe levels</td>
<td>`ℓ`, 'b'</td>
<td>`u`, 'v'</td>
</tr>
<tr>
<td>parametric types</td>
<td>`A`, `B`</td>
<td>`α`, `β`</td>
</tr>
<tr>
<td>Isomorphism</td>
<td>`↔`</td>
<td>`<=>`</td>
</tr>
<tr>
<td>Exetensional Isomorphism</td>
<td>`⟷`</td>
<td>`∀ {w: List α}, (a w) <=> (b w)`</td>
</tr>
</table>

Syntax:

- We dropped most of the syntax, in favour of `([a-z]|[A-Z]|')` names.
- We use namespaces as much as possible to make dependencies clear to the reader without requiring "Go to Definition" and Lean to be installed.

Not just a renaming, but still a difference with little consequence:

- `Lang` in Agda is defined as `Lang \alpha` in Lean. The `A` parameter for `Lang` is lifted to the module level in Agda, but there doesn't seem to be a way to hide this in Lean.
- `Lang` in Agda is defined as `Lang α` in Lean. The `A` parameter for `Lang` is lifted to the module level in Agda, but there doesn't seem to be a way to hide this in Lean.

0 comments on commit ef4b2f2

Please sign in to comment.