This file contains hidden or 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
Definition isO (n: nat) := | |
if n then True else False. | |
Definition isNil {A: Type}(l: list A) := | |
if l then True else False. | |
Goal isO 0. | |
simpl; auto. | |
Qed. |
This file contains hidden or 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 Coq.Setoids.Setoid Morphisms. | |
Set Implicit Arguments. | |
Unset Strict Implicit. | |
Set Contextual Implicit. | |
Set Reversible Pattern Implicit. | |
Generalizable All Variables. | |
Delimit Scope cat_scope with cat. | |
Open Scope cat_scope. |
This file contains hidden or 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
Set Implicit Arguments. | |
Unset Strict Implicit. | |
Generalizable All Variables. | |
Require Export Basics Tactics Coq.Setoids.Setoid Morphisms. | |
Structure Setoid := | |
{ |
This file contains hidden or 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
Set Implicit Arguments. | |
Unset Strict Implicit. | |
Require Import setoid_advent_2014. | |
Structure Map (X Y: Setoid) := | |
{ | |
map_body:> X -> Y; |
This file contains hidden or 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
Set Implicit Arguments. | |
Unset Strict Implicit. | |
Require Export Basics Tactics Setoid Morphisms. | |
Structure Setoid := | |
{ | |
carrier:> Type; | |
equal: relation carrier; |
This file contains hidden or 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
Set Implicit Arguments. | |
Unset Strict Implicit. | |
Generalizable All Variables. | |
Require ssreflect. | |
Import ssreflect.SsrSyntax. | |
Module ForSyntax. | |
Class Functor (T: Type -> Type): Type := |
This file contains hidden or 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
(* -*- mode: coq -*- *) | |
(* Time-stamp: <2014/9/7 13:46:31> *) | |
(* | |
Scratch.v | |
- mathink : Author | |
*) | |
(** * Category Theory 'on' Coq | |
米田の補題を目標にして進めていきます。 |
This file contains hidden or 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
(* -*- mode: coq -*- *) | |
(* Time-stamp: <2014/9/6 22:44:0> *) | |
(* | |
Scratch.v | |
- mathink : Author | |
*) | |
(** * Category Theory 'on' Coq *) |
This file contains hidden or 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
(* -*- mode: coq -*- *) | |
(* Time-stamp: <2014/9/6 1:2:55> *) | |
(* | |
Scratch.v | |
- mathink : Author | |
*) | |
(** * Category Theory 'on' Coq *) | |
Set Implicit Arguments. |
This file contains hidden or 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 ssreflect eqtype ssrbool ssrfun ssrnat seq. | |
Require Import Adlibssr.btree Adlibssr.binsearch Adlibssr.order. | |
(* leq is total-order on nat *) | |
Program Canonical Structure leq: totalOrder nat := makeTotalOrder leq. | |
Next Obligation. | |
apply anti_leq. | |
Qed. |