- 
                Notifications
    You must be signed in to change notification settings 
- Fork 25
test for step 0 of CoREACT #357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Draft
      
      
            gares
  wants to merge
  10
  commits into
  master
  
    
      
        
          
  
    
      Choose a base branch
      
     
    
      
        
      
      
        
          
          
        
        
          
            
              
              
              
  
           
        
        
          
            
              
              
           
        
       
     
  
        
          
            
          
            
          
        
       
    
      
from
CoREACT
  
      
      
   
  
    
  
  
  
 
  
      
    base: master
Could not load branches
            
              
  
    Branch not found: {{ refName }}
  
            
                
      Loading
              
            Could not load tags
            
            
              Nothing to show
            
              
  
            
                
      Loading
              
            Are you sure you want to change the base?
            Some commits from the old base branch may be removed from the timeline,
            and old review comments may become outdated.
          
          
      
        
          +100
        
        
          −0
        
        
          
        
      
    
  
  
     Draft
                    Changes from 4 commits
      Commits
    
    
            Show all changes
          
          
            10 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      6f1dee6
              
                test for step 0 of CoREACT
              
              
                gares 1ceb6ea
              
                update
              
              
                gares f6c1970
              
                more
              
              
                gares 17d6561
              
                more
              
              
                gares d2bc00f
              
                Update tests/monoid_enriched_cat.v
              
              
                CohenCyril 6726472
              
                Update tests/monoid_enriched_cat.v
              
              
                CohenCyril 0821793
              
                Update tests/monoid_enriched_cat.v
              
              
                CohenCyril 234e3f5
              
                Update tests/monoid_enriched_cat.v
              
              
                CohenCyril 92e1f68
              
                Update tests/monoid_enriched_cat.v
              
              
                CohenCyril b7f3789
              
                Update tests/monoid_enriched_cat.v
              
              
                CohenCyril File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      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
    
  
  
    
              
  
    
      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
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| From HB Require Import structures. | ||
| From Coq Require Import ssreflect ssrfun. | ||
|  | ||
| HB.mixin Record isQuiver Obj := { hom : Obj -> Obj -> Type }. | ||
|  | ||
| HB.structure Definition Quiver := { Obj of isQuiver Obj }. | ||
|  | ||
| HB.mixin Record isMon A := { | ||
| zero : A; | ||
| add : A -> A -> A; | ||
| addrA : associative add; | ||
| add0r : left_id zero add; | ||
| addr0 : right_id zero add; | ||
| }. | ||
|  | ||
| HB.structure | ||
| Definition Monoid := { A of isMon A }. | ||
|  | ||
| Fail HB.structure | ||
| Definition Monoid_enriched_quiver := | ||
| { Obj of isQuiver Obj & | ||
| (forall A B : Obj, isMon (@hom (Quiver.clone Obj _) A B)) }. | ||
|  | ||
|  | ||
| HB.mixin Record hom_isMon T of Quiver T := | ||
| { private : forall A B, isMon (@hom T A B) }. | ||
|  | ||
| HB.structure | ||
|         
                  CohenCyril marked this conversation as resolved.
              Show resolved
            Hide resolved | ||
| Definition Monoid_enriched_quiver := | ||
| { Obj of isQuiver Obj & hom_isMon Obj }. | ||
|  | ||
| HB.instance Definition _ (T : Monoid_enriched_quiver.type) (A B : T) : isMon (@hom T A B) := | ||
| @private T A B. | ||
|  | ||
| (* each instance of isMon should be tried as an instance of hom_isMon *) | ||
|  | ||
|  | ||
|         
                  CohenCyril marked this conversation as resolved.
              Outdated
          
            Show resolved
            Hide resolved | ||
  
    
      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
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| From HB Require Import structures. | ||
|  | ||
| HB.mixin Record isMonLaw T (e : T) (op : T -> T -> T) := { | ||
| opmA : forall a b c, op (op a b) c = op a (op b c); | ||
| op1m : forall x, op e x = x; | ||
| opm1 : forall x, op x e = x; | ||
| }. | ||
|  | ||
| HB.structure Definition MonLaw T e := { op of isMonLaw T e op }. | ||
|  | ||
| HB.mixin Record isPreMonoid T := { | ||
| zero : T; | ||
| add : T -> T -> T; | ||
| }. | ||
| HB.structure Definition PreMonoid := { T of isPreMonoid T }. | ||
|  | ||
| HB.structure Definition Monoid := | ||
| { T of isPreMonoid T & isMonLaw T zero add }. | 
  
    
      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
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| From HB Require Import structures. | ||
|  | ||
| HB.mixin Record isMonLaw T (e : T) (op : T -> T -> T) := { | ||
| opmA : forall a b c, op (op a b) c = op a (op b c); | ||
| op1m : forall x, op e x = x; | ||
| opm1 : forall x, op x e = x; | ||
| }. | ||
|  | ||
| HB.structure Definition MonLaw T e := { op of isMonLaw T e op }. | ||
|  | ||
| HB.mixin Record isPreMonoid T := { | ||
| zero : T; | ||
| add : T -> T -> T; | ||
| }. | ||
| HB.structure Definition PreMonoid := { T of isPreMonoid T }. | ||
|  | ||
| HB.structure Definition Monoid := | ||
| { T of isPreMonoid T & | ||
| isMonLaw T (@zero (PreMonoid.clone T _)) (@add (PreMonoid.clone T _)) }. | 
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.