Last active
November 15, 2019 20:44
-
-
Save y-taka-23/4700318 to your computer and use it in GitHub Desktop.
Quine (Self-Reproducing Program) on Coq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Require Import Ascii String. | |
Open Scope string_scope. | |
Definition Q : string := " | |
Eval compute in "" | |
Require Import Ascii String. | |
Open Scope string_scope. | |
Definition Q : string := "" ++ """" ++ Q ++ """" ++ ""."" ++ Q.". | |
Eval compute in " | |
Require Import Ascii String. | |
Open Scope string_scope. | |
Definition Q : string := " ++ """" ++ Q ++ """" ++ "." ++ Q. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment