-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from coq-community/list-finegrained
Finer-grained hierarchy for list
- Loading branch information
Showing
3 changed files
with
104 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
(*****************************************************************************) | ||
(* * Trocq *) | ||
(* _______ * Copyright (C) 2023 Inria & MERCE *) | ||
(* |__ __| * (Mitsubishi Electric R&D Centre Europe) *) | ||
(* | |_ __ ___ ___ __ _ * Cyril Cohen <[email protected]> *) | ||
(* | | '__/ _ \ / __/ _` | * Enzo Crance <[email protected]> *) | ||
(* | | | | (_) | (_| (_| | * Assia Mahboubi <[email protected]> *) | ||
(* |_|_| \___/ \___\__, | ************************************************) | ||
(* | | * This file is distributed under the terms of *) | ||
(* |_| * GNU Lesser General Public License Version 3 *) | ||
(* * see LICENSE file for the text of the license *) | ||
(*****************************************************************************) | ||
|
||
From Coq Require Import ssreflect. | ||
From Trocq Require Import Trocq Param_list. | ||
From Trocq_examples Require Import int_to_Zp. | ||
|
||
Set Universe Polymorphism. | ||
|
||
Local Open Scope int_scope. | ||
Local Open Scope Zmodp_scope. | ||
|
||
Definition Rp := SplitSurj.toParamSym (SplitSurj.Build reprpK). | ||
|
||
Axiom Rzero : Rp zerop zero. | ||
Variable Radd : binop_param Rp Rp Rp addp add. | ||
Variable paths_to_eqmodp : binop_param Rp Rp iff paths eqmodp. | ||
|
||
Trocq Use Rp Param01_paths Param10_paths Radd Rzero Param_cons Param_nil. | ||
|
||
Module Stuck. | ||
|
||
Trocq Use Param44_list. | ||
Goal forall (l : list Zmodp), l = l. | ||
Fail trocq. | ||
Abort. | ||
|
||
End Stuck. | ||
|
||
Module Works. | ||
|
||
Trocq Use Param2a4_list. | ||
Goal forall (l : list Zmodp), l = l. | ||
trocq. | ||
reflexivity. | ||
Qed. | ||
|
||
End Works. | ||
|
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