Skip to content

Instantly share code, notes, and snippets.

View righ1113's full-sized avatar
🏠
Working from home

righ1113

🏠
Working from home
View GitHub Profile
@righ1113
righ1113 / river.egi
Last active May 4, 2024 04:27
川渡り問題 in Egison
--
-- River
--
-- $ egison 4.1.3
-- > loadFile "river.egi"
--
-- Data
--
@righ1113
righ1113 / bf2.egi
Last active November 15, 2023 23:59
Brainf*ck in Egison
--
-- Brainf*ck
--
-- $ egison 4.1.3
-- > loadFile "bf2.egi"
--
-- Pattern Function
--
@righ1113
righ1113 / 5color.egi
Last active November 12, 2023 00:10
五色定理 in Egison
--
-- 5-color
--
-- Egison Jornal Vol.2 「Egison パターンマッチによるグラフの彩色」を new syntax で書いたもの
--
-- $ egison 4.1.3
-- > loadFile "5color.egi"
--
@righ1113
righ1113 / Halt.idr
Last active July 5, 2023 19:55
停止性問題 in Idris
-- $ idris
-- > :l Halt
module Halt
%default total
namespace Hal
postulate H : (f : a) -> Bool
@righ1113
righ1113 / GoedelPuzzle.idr
Last active July 5, 2023 19:56
ゲーデル・パズル in Idris
-- 参考記事:https://qiita.com/41semicolon/items/530c0e5e4785728f7295
--
-- $ idris
-- > :l GoedelPuzzle
module GoedelPuzzle
%default total
%hide (++)
@righ1113
righ1113 / Test03.thy
Last active August 9, 2022 21:19
Isabelle の練習
theory Test03
imports Main HOL.Nat HOL.Wellfounded
begin
(*
lemma hoge220802 [simp]:
fixes F :: "nat ⇒ bool"
and n :: nat
assumes a: "F n"
(* and b: "A ≠ F" *)
@righ1113
righ1113 / prolog_lisp.pl
Created August 7, 2021 17:27
Prolog で Lisp
% Welcome to SWI-Prolog (threaded, 64 bits, version 8.3.28)
% 参考: https://qiita.com/sym_num/items/955f47de4494f4c57ba8
% 実行:
% > prolog
% ?- ['./prolog_lisp.pl'].
% ?- repl.
% :- use_module(library(history)).
%Lisp in Prolog
@righ1113
righ1113 / hadwiger01.md
Last active June 1, 2022 22:17
『四色問題を解く。』の考察
@righ1113
righ1113 / Esty.idr
Created February 21, 2021 05:34
何かのタネ
-- :l Esty
module Esty
%default total
%hide fib
%hide fact
syntax "sif(" [t] "," [e] ")." [bool] = ifThenElse bool t e
namespace Fun
@righ1113
righ1113 / zdkRec.pp
Created February 11, 2021 07:27
Paraphrase でズンドコ
// "zdkRec.pp" load
"zdkSub" :
random 0.5 > if
1 +
"Zun" .
zdkSub
else
"Doko" .
4 >= if