mirror of
				https://github.com/nmvdw/HITs-Examples
				synced 2025-11-04 07:33:51 +01:00 
			
		
		
		
	Split the development into different directories
This commit is contained in:
		
							
								
								
									
										7
									
								
								FiniteSets/FSets.v
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								FiniteSets/FSets.v
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
				
			|||||||
 | 
					Require Export HoTT HitTactics.
 | 
				
			||||||
 | 
					Require Export representations.definition.
 | 
				
			||||||
 | 
					From fsets Require Export
 | 
				
			||||||
 | 
					     monad
 | 
				
			||||||
 | 
					     extensionality
 | 
				
			||||||
 | 
					     properties
 | 
				
			||||||
 | 
					     properties_decidable.
 | 
				
			||||||
@@ -2,16 +2,17 @@
 | 
				
			|||||||
-R ../prelude ""
 | 
					-R ../prelude ""
 | 
				
			||||||
lattice.v
 | 
					lattice.v
 | 
				
			||||||
disjunction.v
 | 
					disjunction.v
 | 
				
			||||||
bad.v
 | 
					representations/bad.v
 | 
				
			||||||
definition.v
 | 
					representations/definition.v
 | 
				
			||||||
operations.v
 | 
					fsets/operations.v
 | 
				
			||||||
properties.v
 | 
					fsets/properties.v
 | 
				
			||||||
operations_decidable.v
 | 
					fsets/operations_decidable.v
 | 
				
			||||||
extensionality.v
 | 
					fsets/extensionality.v
 | 
				
			||||||
properties_decidable.v
 | 
					fsets/properties_decidable.v
 | 
				
			||||||
monad.v
 | 
					fsets/monad.v
 | 
				
			||||||
cons_repr.v
 | 
					FSets.v
 | 
				
			||||||
lists.v
 | 
					representations/cons_repr.v
 | 
				
			||||||
enumerated.v
 | 
					implementations/lists.v
 | 
				
			||||||
 | 
					variations/enumerated.v
 | 
				
			||||||
#empty_set.v
 | 
					#empty_set.v
 | 
				
			||||||
#ordered.v
 | 
					#ordered.v
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,7 @@
 | 
				
			|||||||
(** Extensionality of the FSets *)
 | 
					(** Extensionality of the FSets *)
 | 
				
			||||||
Require Import HoTT HitTactics.
 | 
					Require Import HoTT HitTactics.
 | 
				
			||||||
Require Import definition operations properties.
 | 
					From representations Require Import definition.
 | 
				
			||||||
 | 
					From fsets Require Import operations properties.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Section ext.
 | 
					Section ext.
 | 
				
			||||||
Context {A : Type}.
 | 
					Context {A : Type}.
 | 
				
			||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
(* [FSet] is a (strong and stable) finite powerset monad *)
 | 
					(* [FSet] is a (strong and stable) finite powerset monad *)
 | 
				
			||||||
Require Import HoTT HitTactics.
 | 
					Require Import HoTT HitTactics.
 | 
				
			||||||
Require Export definition properties.
 | 
					Require Export representations.definition fsets.properties.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Definition ffmap {A B : Type} : (A -> B) -> FSet A -> FSet B.
 | 
					Definition ffmap {A B : Type} : (A -> B) -> FSet A -> FSet B.
 | 
				
			||||||
Proof.
 | 
					Proof.
 | 
				
			||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
(* Operations on the [FSet A] for an arbitrary [A] *)
 | 
					(* Operations on the [FSet A] for an arbitrary [A] *)
 | 
				
			||||||
Require Import HoTT HitTactics.
 | 
					Require Import HoTT HitTactics.
 | 
				
			||||||
Require Import definition disjunction lattice.
 | 
					Require Import representations.definition disjunction lattice.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Section operations.
 | 
					Section operations.
 | 
				
			||||||
Context {A : Type}.
 | 
					Context {A : Type}.
 | 
				
			||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
(* Operations on [FSet A] when [A] has decidable equality *)
 | 
					(* Operations on [FSet A] when [A] has decidable equality *)
 | 
				
			||||||
Require Import HoTT HitTactics.
 | 
					Require Import HoTT HitTactics.
 | 
				
			||||||
Require Export definition operations.
 | 
					Require Export representations.definition fsets.operations.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Section decidable_A.
 | 
					Section decidable_A.
 | 
				
			||||||
  Context {A : Type}.
 | 
					  Context {A : Type}.
 | 
				
			||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
Require Import HoTT HitTactics.
 | 
					Require Import HoTT HitTactics.
 | 
				
			||||||
Require Export definition operations disjunction.
 | 
					Require Export representations.definition disjunction fsets.operations.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(* Lemmas relating operations to the membership predicate *)
 | 
					(* Lemmas relating operations to the membership predicate *)
 | 
				
			||||||
Section operations_isIn.
 | 
					Section operations_isIn.
 | 
				
			||||||
@@ -1,6 +1,7 @@
 | 
				
			|||||||
(* Properties of [FSet A] where [A] has decidable equality *)
 | 
					(* Properties of [FSet A] where [A] has decidable equality *)
 | 
				
			||||||
Require Import HoTT HitTactics.
 | 
					Require Import HoTT HitTactics.
 | 
				
			||||||
Require Export properties extensionality lattice operations_decidable.
 | 
					From fsets Require Export properties extensionality operations_decidable.
 | 
				
			||||||
 | 
					Require Export lattice.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(* Lemmas relating operations to the membership predicate *)
 | 
					(* Lemmas relating operations to the membership predicate *)
 | 
				
			||||||
Section operations_isIn.
 | 
					Section operations_isIn.
 | 
				
			||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
Require Import HoTT HitTactics.
 | 
					Require Import HoTT HitTactics.
 | 
				
			||||||
Require Import cons_repr operations_decidable properties_decidable definition.
 | 
					Require Import representations.cons_repr FSets.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Section Operations.
 | 
					Section Operations.
 | 
				
			||||||
  Variable A : Type.
 | 
					  Variable A : Type.
 | 
				
			||||||
@@ -1,5 +1,6 @@
 | 
				
			|||||||
Require Import HoTT HitTactics.
 | 
					Require Import HoTT HitTactics.
 | 
				
			||||||
Require Import definition operations_decidable properties_decidable.
 | 
					Require Import representations.definition.
 | 
				
			||||||
 | 
					From fsets Require Import operations_decidable properties_decidable.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Module Export FSetC.
 | 
					Module Export FSetC.
 | 
				
			||||||
 
 | 
					 
 | 
				
			||||||
		Reference in New Issue
	
	Block a user