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
Section Perceptron. | |
Require Import QArith List. | |
Inductive Q_vector : nat -> Set := | |
| vnil : Q_vector O | |
| vcons : forall n : nat, | |
Q -> Q_vector n -> Q_vector (S n). | |
Implicit Arguments vcons [n]. | |
Notation "x ; v" := (vcons x v) |
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
// ************************************ | |
// 命題論理のシークエント計算のモデル | |
// ************************************ | |
// 論理式 | |
abstract sig Formula {} | |
// 原子命題 | |
sig Atom extends Formula {} |
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
// ************************************ | |
// 十進法による符号なし整数演算のモデル | |
// ************************************ | |
open util/ordering[Position] | |
// ------------------------------------ | |
// 位取り記数法のモデリング | |
// ------------------------------------ |
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
// ************************************ | |
// 組み合わせ回路のモデル | |
// ************************************ | |
// ------------------------------------ | |
// 組み合わせ回路の性質 | |
// ------------------------------------ | |
// 回路の構成要素 | |
abstract sig Element { |
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
// ************************************ | |
// 群のモデル | |
// ************************************ | |
// ------------------------------------ | |
// 群の公理 | |
// ------------------------------------ | |
// 群の元 | |
sig Element { |
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
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. |
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
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. |
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
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. | |
. |
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
// ************************************ | |
// 排他制御のモデル | |
// ************************************ | |
// Time シグネチャに全順序構造を導入 | |
open util/ordering [Time] | |
// 時刻を表すシグネチャ | |
sig Time {} |
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
// ************************************ | |
// 連結リストを用いたキューのモデル | |
// ************************************ | |
module alloy_queue[Value] | |
// ------------------------------------ | |
// 各要素の定義 | |
// ------------------------------------ |