https://github.com/eggy115/agda
Agda
https://github.com/eggy115/agda
agda
Last synced: 3 months ago
JSON representation
Agda
- Host: GitHub
- URL: https://github.com/eggy115/agda
- Owner: Eggy115
- License: gpl-3.0
- Created: 2023-04-06T10:26:18.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-12T10:33:45.000Z (about 3 years ago)
- Last Synced: 2025-03-17T22:55:45.811Z (about 1 year ago)
- Topics: agda
- Language: Agda
- Homepage: https://github.com/Eggy115/Agda
- Size: 33.2 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Agda
Agda is a dependently typed programming language based on intuitionistic type theory. It is designed for reasoning about mathematical properties of programs and proving their correctness. Here's an example of a simple program in Agda:
```agda
module HelloWorld where
open import Data.String
main : IO ()
main = putStr "Hello, World!\n"
```
This program uses the `Data.String` module to output the text "Hello, World!" to the console using the `putStr` function. The `main` function is of type `IO ()`, indicating that it performs I/O operations and returns no meaningful value.
When this program is compiled and run, it will display the text "Hello, World!" on the screen.
Agda programs are typically saved with the "`.agda`" file extension. For example, the "Hello, World!" program I showed earlier would be saved in a file named "HelloWorld.agda".