Module mathcomp.classical.contra
From mathcomp Require Import ssreflect ssrfun ssrbool eqtype ssrnat seq.From mathcomp Require Import boolp.
Unset SsrOldRewriteGoalsOrder.
Set Implicit Arguments.
Unset Strict Implicit.
Unset Printing Implicit Defensive.
Variant move_viewSource code SSource code TSource code := MoveViewSource code of S -> T.
Definition move_viewP
Source code {SSource code TSource code} mvSource code : S -> T := let: MoveView v := mv in v.
Hint View for move/ move_viewP|2.
Variant equivTSource code SSource code TSource code := EquivTSource code of S -> T & T -> S.
Definition equivT_refl
Source code SSource code : equivT S S := EquivT id id.
Definition equivT_transl
Source code {SSource code TSource code USource code} : equivT S T -> equivT S U -> equivT T U :=
fun (stSource code : equivT S T) (suSource code : equivT S U) =>
let: EquivT S_T T_S := st in
let: EquivT S_U U_S := su in
EquivT (S_U \o T_S) (S_T \o U_S).
Definition equivT_sym
Source code {SSource code TSource code} : equivT S T -> equivT T S :=
equivT_transl^~ (equivT_refl S).
Definition equivT_trans
Source code {SSource code TSource code USource code} : equivT S T -> equivT T U -> equivT S U :=
equivT_transl \o equivT_sym.
Definition equivT_transr
Source code {SSource code TSource code USource code} eqSTSource code : equivT U S -> equivT U T :=
equivT_trans^~ eqST.
Definition equivT_Prop
Source code (PSource code QSource code : Prop) : (equivT P Q) <-> (equivT P Q).
Proof.
Source code {SSource code TSource code} (eqSource code : equivT S T) : S -> T :=
let: EquivT S_T _ := eq in S_T.
Definition equivT_RL
Source code {SSource code TSource code} (eqSource code : equivT S T) : T -> S :=
let: EquivT _ T_S := eq in T_S.
Hint View for move/ equivT_LR|2 equivT_RL|2.
Hint View for apply/ equivT_RL|2 equivT_LR|2.
Structure forallSortSource code ASource code :=
ForallSort {forall_sortSource code :> Type; _ : (A -> forall_sort) -> forall_sort}.
Notation mkForallSortSource code A S := (@ForallSort A S (fun TSource code => forall xSource code, T x)).
Polymorphic Definition TypeForall
Source code (SSource code := Type) (ASource code : S) := mkForallSort A S.
Canonical TypeForall.
Canonical PropForall
Source code ASource code := mkForallSort A Prop.
Canonical SetForall
Source code (ASource code : Set) := mkForallSort A Set.
Definition Forall
Source code {ASource code} {SSource code : forallSort A} :=
let: ForallSort _ F := S return (A -> S) -> S in F.
Notation "\Forall x .. z , T"Source code :=
(Forall (fun xSource code => .. (Forall (fun zSource code => T)) ..))
(at level 200, x binder, z binder, T at level 200,
format "'[hv' '\Forall' '[' x .. z , ']' '/ ' T ']'") : type_scope.
Tactic Notation "ForallI" ssrpatternarg(pat) :=
let F := fresh "F" in ssrmatching.ssrpattern pat => F;
case: F / (@erefl _ F : Forall _ = _).
Tactic Notation "ForallI" := ForallI (forall xSource code, _).
Structure wrappedPropSource code := WrapProp {unwrap_PropSource code :> Prop}.
Definition wrap4Prop
pinfty_nbhs : forall R : numFieldType, set_system R pinfty_nbhs is not universe polymorphic Arguments pinfty_nbhs R _ pinfty_nbhs is transparent Expands to: Constant mathcomp.analysis.normedtype_theory.num_normedtype.pinfty_nbhs Declared in library mathcomp.analysis.normedtype_theory.num_normedtype, line 222, characters 11-22
Source code := WrapProp.
Definition wrap3Prop
ninfty_nbhs : forall R : numFieldType, set_system R ninfty_nbhs is not universe polymorphic Arguments ninfty_nbhs R _ ninfty_nbhs is transparent Expands to: Constant mathcomp.analysis.normedtype_theory.num_normedtype.ninfty_nbhs Declared in library mathcomp.analysis.normedtype_theory.num_normedtype, line 225, characters 11-22
Source code := wrap4Prop.
Definition wrap2Prop
is_interval : forall {R : numDomainType}, set R -> Prop is_interval is not universe polymorphic Arguments is_interval {R} E%_classical_set_scope is_interval is transparent Expands to: Constant mathcomp.analysis.normedtype_theory.num_normedtype.is_interval Declared in library mathcomp.analysis.normedtype_theory.num_normedtype, line 812, characters 11-22
Source code := wrap3Prop.
Canonical wrap1Prop
itvoo_basis : forall {R : realFieldType}, set_system R itvoo_basis is not universe polymorphic Arguments itvoo_basis {R} _ itvoo_basis is transparent Expands to: Constant mathcomp.analysis.normedtype_theory.num_normedtype.itvoo_basis Declared in library mathcomp.analysis.normedtype_theory.num_normedtype, line 846, characters 11-22
Source code PSource code := wrap2Prop P.
Polymorphic Structure wrappedTypeSource code@{i} := WrapType {unwrap_TypeSource code :> Type@{i}}.
Polymorphic Definition wrap4Type
bigcup_ointsub : forall {R : realType}, set R -> rat -> set R bigcup_ointsub is not universe polymorphic Arguments bigcup_ointsub {R} U%_classical_set_scope q%_ring_scope _ bigcup_ointsub is transparent Expands to: Constant mathcomp.analysis.normedtype_theory.num_normedtype.bigcup_ointsub Declared in library mathcomp.analysis.normedtype_theory.num_normedtype, line 871, characters 11-25
Source code@{i} := WrapType@{i}.
Polymorphic Definition wrap3Type
interior_itv : forall {R : realType}, (forall (x y : R) (a b : bool), interior [set` Interval (BSide a x) (BSide b y)] = `]x, y[%classic) * (forall (x : R) (b : bool), interior [set` Interval (BSide b x) +oo%O] = `]x, +oo[%classic) * (forall (y : R) (b : bool), interior [set` Interval -oo%O (BSide b y)] = `]-oo, y[%classic) * (interior `]-oo, +oo[ = `]-oo, +oo[%classic) interior_itv is not universe polymorphic Arguments interior_itv {R} interior_itv is transparent Expands to: Constant mathcomp.analysis.normedtype_theory.num_normedtype.interior_itv Declared in library mathcomp.analysis.normedtype_theory.num_normedtype, line 1029, characters 11-23
Source code@{i} := wrap4Type@{i}.
Polymorphic Definition wrap2Type
Source code@{i} := wrap3Type@{i}.
Polymorphic Definition wrap1Type
Source code@{i} (TSource code : Type@{i}) := wrap2Type T.
Canonical wrap1Type.
Lemma generic_forall_extensionalitySource code {ASource code} {SSource code : forallSort A} {PSource code QSource code : A -> S} :
P =1 Q -> Forall P = Forall Q.
Proof.
Structure negatedPropSource code (trivialSource code : bool) nPSource code :=
NegatedProp {negated_PropSource code :> wrappedProp; _ : (~ negated_Prop) = nP}.
Structure properNegatedPropSource code nPSource code := ProperNegatedProp {
proper_negated_PropSource code :> Prop; _ : (~ proper_negated_Prop) = nP}.
Local Notation nPropSource code t nP P := (unwrap_Prop (@negated_Prop t nP P)).
Local Notation nPredSource code t nP P x := (nProp t (nP x) (P x)).
Local Notation pnPropSource code nP P := (@proper_negated_Prop nP P).
Lemma lax_notESource code {tSource code nPSource code} PSource code : (~ nProp t nP P) = nP
Proof.
- mathcomp.analysis.topology_theory.metric_structure
- mathcomp.classical.wochoice
Source code {tSource code nPSource code PSource code} : ~ nProp t nP P -> nP
Proof.
Source code {tSource code nPSource code} PSource code : nProp t nP P = (~ nP) := canRL notK (lax_notE P).
#[warn(note="A different `notE` used to be provided by `boolp.v` before MathComp-Analysis 1.15.0.")]
Definition notE
Source code {nPSource code} PSource code : (~ nProp false nP P) = nP := lax_notE P.
#[warn(note="A different `notP` used to be provided by `boolp.v` before MathComp-Analysis 1.15.0.")]
Definition notP
Source code {nPSource code PSource code} := MoveView (@lax_notP false nP P).
Fact proper_nPropPSource code nPSource code PSource code : (~ pnProp nP P) = nP
Proof.
Source code {nPSource code} PSource code : pnProp nP P = (~ nP) := canRL notK (proper_nPropP P).
Source code nPSource code PSource code :=
@NegatedProp false nP (wrap1Prop (pnProp nP P)) (proper_nPropP P).
Source code PSource code := @NegatedProp true (~ P) (wrap3Prop P) erefl.
Canonical True_nProp
Source code := @ProperNegatedProp False True notB.1.
Canonical False_nProp
mx_norm : forall [K : numDomainType] {m n : nat}, 'M_(m, n) -> K mx_norm is not universe polymorphic Arguments mx_norm [K] {m n}%_nat_scope x%_ring_scope mx_norm is transparent Expands to: Constant mathcomp.analysis.normedtype_theory.matrix_normedtype.mx_norm Declared in library mathcomp.analysis.normedtype_theory.matrix_normedtype, line 115, characters 11-18
Source code := @ProperNegatedProp True False notB.2.
Canonical not_nProp
matrix_triangle : forall {K : numDomainType} [m n : nat] (M N : 'M_(m, n)), (`|M + N| <= `|M| + `|N|)%R matrix_triangle is not universe polymorphic Arguments matrix_triangle {K} [m n]%_nat_scope (M N)%_ring_scope matrix_triangle is opaque Expands to: Constant mathcomp.analysis.normedtype_theory.matrix_normedtype.matrix_triangle Declared in library mathcomp.analysis.normedtype_theory.matrix_normedtype, line 205, characters 8-23
Source code PSource code := @ProperNegatedProp P (~ P) (notK P).
Fact and_nPropPSource code PSource code tQSource code nQSource code QSource code : (~ (P /\ nProp tQ nQ Q)) = (P -> nQ).
Canonical and_nProp
pair_triangle : forall {K : numDomainType} (x y : K * K), (`|x + y| <= `|x| + `|y|)%R pair_triangle is not universe polymorphic Arguments pair_triangle {K} x y pair_triangle is opaque Expands to: Constant mathcomp.analysis.normedtype_theory.matrix_normedtype.pair_triangle Declared in library mathcomp.analysis.normedtype_theory.matrix_normedtype, line 209, characters 8-21
Source code PSource code tQSource code nQSource code QSource code :=
ProperNegatedProp (@and_nPropP P tQ nQ Q).
Fact and3_nPropPSource code PSource code QSource code tRSource code nRSource code RSource code : (~ [/\ P, Q & nProp tR nR R]) = (P -> Q -> nR).
Canonical and3_nProp
Source code PSource code QSource code tRSource code nRSource code RSource code :=
ProperNegatedProp (@and3_nPropP P Q tR nR R).
Fact and4_nPropPSource code PSource code QSource code RSource code tSSource code nSSource code SSource code :
(~ [/\ P, Q, R & nProp tS nS S]) = (P -> Q -> R -> nS).
Canonical and4_nProp
Source code PSource code QSource code RSource code tSSource code nSSource code SSource code :=
ProperNegatedProp (@and4_nPropP P Q R tS nS S).
Fact and5_nPropPSource code PSource code QSource code RSource code SSource code tTSource code nTSource code TSource code :
(~ [/\ P, Q, R, S & nProp tT nT T]) = (P -> Q -> R -> S -> nT).
Canonical and5_nProp
Source code PSource code QSource code RSource code SSource code tTSource code nTSource code TSource code :=
ProperNegatedProp (@and5_nPropP P Q R S tT nT T).
Fact or_nPropPSource code tPSource code nPSource code PSource code tQSource code nQSource code QSource code :
(~ (nProp tP nP P \/ nProp tQ nQ Q)) = (nP /\ nQ).
Canonical or_nProp
Source code tPSource code nPSource code PSource code tQSource code nQSource code QSource code :=
ProperNegatedProp (@or_nPropP tP nP P tQ nQ Q).
Fact or3_nPropPSource code tPSource code nPSource code PSource code tQSource code nQSource code QSource code tRSource code nRSource code RSource code :
(~ [\/ nProp tP nP P, nProp tQ nQ Q | nProp tR nR R]) = [/\ nP, nQ & nR].
Canonical or3_nProp
Source code tPSource code nPSource code PSource code tQSource code nQSource code QSource code tRSource code nRSource code RSource code :=
ProperNegatedProp (@or3_nPropP tP nP P tQ nQ Q tR nR R).
Fact or4_nPropPSource code tPSource code nPSource code PSource code tQSource code nQSource code QSource code tRSource code nRSource code RSource code tSSource code nSSource code SSource code :
(~ [\/ nProp tP nP P, nProp tQ nQ Q, nProp tR nR R | nProp tS nS S])
= [/\ nP, nQ, nR & nS].
Canonical or4_nProp
Source code tPSource code nPSource code PSource code tQSource code nQSource code QSource code tRSource code nRSource code RSource code tSSource code nSSource code SSource code :=
ProperNegatedProp (@or4_nPropP tP nP P tQ nQ Q tR nR R tS nS S).
Notation and_defSource code binary P Q PQ := (PQ = if binary then P /\ Q else Q)%type.
Structure andRHSSource code binarySource code PSource code QSource code PQSource code :=
AndRHS {and_RHSSource code :> Prop; _ : (P /\ and_RHS) = PQ; _ : and_def binary P Q PQ}.
Canonical unary_and_rhs
Source code PSource code := @AndRHS false P P P True (andB.1.2 P) erefl.
Canonical binary_and_rhs
Source code PSource code QSource code := @AndRHS true P Q (P /\ Q) Q erefl erefl.
Fact imply_nPropPSource code bSource code PSource code nQSource code PnQSource code tRSource code (nRSource code : andRHS b P nQ PnQ) RSource code :
(~ (P -> nProp tR nR R)) = PnQ.
Canonical imply_nProp
Source code bSource code PSource code nQSource code PnQSource code tRSource code nRSource code RSource code :=
ProperNegatedProp (@imply_nPropP b P nQ PnQ tR nR R).
Fact exists_nPropPSource code ASource code tPSource code nPSource code PSource code :
(~ exists xSource code : A, nPred tP nP P x) = (forall xSource code : A, nP x).
Proof.
Source code ASource code tPSource code nPSource code PSource code :=
ProperNegatedProp (@exists_nPropP A tP nP P).
Fact exists2_nPropPSource code ASource code PSource code tQSource code nQSource code QSource code :
(~ exists2 xSource code : A, P x & nPred tQ nQ Q x) = (forall xSource code : A, P x -> nQ x).
Canonical exists2_nProp
Source code ASource code PSource code tQSource code nQSource code QSource code :=
ProperNegatedProp (@exists2_nPropP A P tQ nQ Q).
Fact inhabited_nPropPSource code TSource code : (~ inhabited T) = (T -> False).
Proof.
Source code TSource code := ProperNegatedProp (inhabited_nPropP T).
Structure negatedForallBodySource code boundedSource code PSource code nQSource code tRSource code nRSource code := NegatedForallBody {
negated_forall_bodySource code :> negatedProp tR nR; _ : and_def bounded P nQ nR}.
Structure properNegatedForallBodySource code bSource code PSource code nQSource code nRSource code := ProperNegatedForallBody {
proper_negated_forall_bodySource code :> properNegatedProp nR; _ : and_def b P nQ nR}.
Notation nBodySource code b P nQ t nR x := (negatedForallBody b (P x) (nQ x) t (nR x)).
Fact forall_nPropPSource code ASource code bSource code PSource code nQSource code tRSource code nRSource code (RSource code : forall xSource code, nBody b P nQ tR nR x) :
(~ forall xSource code : A, R x) = if b then exists2 xSource code, P x & nQ x else exists xSource code, nQ x.
Proof.
apply/generic_forall_extensionality=> x; rewrite if_arg lax_notI.
by case: (R x) => _ <-.
Qed.
Source code ASource code bSource code PSource code nQSource code tRSource code nRSource code (RSource code : forall xSource code, nBody b P nQ tR nR x) :=
@NegatedProp false _ (wrap2Prop (forall xSource code : A, R x)) (forall_nPropP R).
Fact proper_nBodyPSource code bSource code PSource code nQSource code nRSource code :
properNegatedForallBody b P nQ nR -> and_def b P nQ nR.
Proof.
Source code bSource code PSource code nQSource code nRSource code RSource code :=
let def_nRSource code := @proper_nBodyP b P nQ nR R in
@NegatedForallBody b P nQ false nR (proper_nProp R) def_nR.
Canonical nonproper_nBody
Source code tPSource code nPSource code PSource code :=
@NegatedForallBody false True nP tP nP P erefl.
Fact andRHS_defSource code bSource code PSource code QSource code PQSource code : andRHS b P Q PQ -> and_def b P Q PQ.
Proof.
Source code bSource code PSource code nQSource code PnQSource code tRSource code nRSource code RSource code :=
ProperNegatedForallBody (@imply_nProp b P nQ PnQ tR nR R) (andRHS_def nR).
Canonical unbounded_nBody
Source code nQSource code QSource code :=
@ProperNegatedForallBody false True nQ nQ Q erefl.
Structure negatedBoolSource code nPSource code :=
NegatedBool {negated_boolSource code :> bool; _ : (~ negated_bool) = nP}.
Structure positedBoolSource code PSource code :=
PositedBool {posited_boolSource code :> bool; _ : is_true posited_bool = P}.
Local Fact is_true_nPropPSource code nPSource code (bSource code : negatedBool nP) : (~ b) = nP.
Proof.
Source code nPSource code bSource code := ProperNegatedProp (@is_true_nPropP nP b).
Local Fact true_negPSource code : (~ true) = False
Proof.
Proof.
Proof.
Proof.
Source code := NegatedBool true_negP.
Canonical true_pos
Source code := PositedBool true_posP.
Canonical false_neg
Source code := NegatedBool false_negP.
Canonical false_pos
Source code := PositedBool false_posP.
Local Fact id_negPSource code (bSource code : bool) : (~ b) = ~~ b
Proof.
Source code bSource code := NegatedBool (id_negP b).
Canonical id_pos
Source code (bSource code : bool) := @PositedBool b b erefl.
Local Fact negb_negPSource code PSource code (bSource code : positedBool P) : (~ ~~ b) = P.
Proof.
Source code PSource code bSource code := NegatedBool (@negb_negP P b).
Local Fact negb_posPSource code nPSource code (bSource code : negatedBool nP) : (~~ b = nP :> Prop).
Proof.
Source code nPSource code bSource code := PositedBool (@negb_posP nP b).
Structure negatedLeqLHSSource code nSource code lt_nmSource code :=
NegatedLeqLHS {negated_leq_LHSSource code :> nat; _ : (n < negated_leq_LHS) = lt_nm}.
Canonical neg_ltn_LHS
Source code nSource code mSource code := @NegatedLeqLHS n (n <= m) m.+1 erefl.
Canonical neg_leq_LHS
Source code nSource code mSource code := @NegatedLeqLHS n (n < m) m erefl.
Local Fact leq_negPSource code nSource code lt_nmSource code (mSource code : negatedLeqLHS n lt_nm) : (~ m <= n) = lt_nm.
Canonical leq_neg
Source code nSource code lt_nmSource code mSource code := NegatedBool (@leq_negP n lt_nm m).
Structure neqRHSSource code nPSource code TSource code xSource code :=
NeqRHS {neq_RHSSource code :> wrapped T; _ : (x <> unwrap neq_RHS) = nP}.
Structure boolNeqRHSSource code nPSource code (xSource code : bool) :=
BoolNeqRHS {bool_neq_RHSSource code; _ : (x <> bool_neq_RHS) = nP}.
Local Fact eq_nPropPSource code nPSource code TSource code xSource code (ySource code : neqRHS nP x) : (x <> unwrap y :> T) = nP.
Proof.
Source code nPSource code TSource code xSource code ySource code := ProperNegatedProp (@eq_nPropP nP T x y).
Local Fact bool_neqPSource code nPSource code xSource code ySource code : (x <> @bool_neq_RHS nP x y) = nP.
Proof.
Source code nPSource code xSource code ySource code := @NeqRHS nP bool x (wrap _) (@bool_neqP nP x y).
Canonical true_neq
Source code nPSource code bSource code := BoolNeqRHS (@is_true_nPropP nP b).
Local Fact false_neqPSource code PSource code (bSource code : positedBool P) : (b <> false :> bool) = P.
Proof.
Source code PSource code bSource code := BoolNeqRHS (@false_neqP P b).
Local Fact eqType_neqPSource code (TSource code : eqType) (xSource code ySource code : T) : (x <> y) = (x != y).
Proof.
Source code (TSource code : eqType) xSource code ySource code :=
@NeqRHS (x != y) T x (Wrap y) (eqType_neqP x y).
Local Fact eq_op_posPSource code (TSource code : eqType) xSource code ySource code : (x == y :> T : Prop) = (x = y).
Proof.
Source code TSource code xSource code ySource code := PositedBool (@eq_op_posP T x y).
Structure witnessedTypeSource code PSource code := WitnessedType {
witnessed_TypeSource code :> wrappedType; _ : inhabited witnessed_Type = P}.
Structure properWitnessedTypeSource code PSource code := ProperWitnessedType {
proper_witnessed_TypeSource code :> Type; _ : inhabited proper_witnessed_Type = P}.
Local Notation wTypeSource code P T := (unwrap_Type (@witnessed_Type P T)).
Local Notation wTyconSource code P T x := (wType (P x) (T x)).
Lemma witnessedType_introSource code {PSource code : Prop} TSource code : P -> wType P T.
Proof.
Lemma witnessedType_elimSource code {PSource code} TSource code : wType P T -> P.
Proof.
Local Fact eq_inhabitedSource code TSource code (PSource code : Prop) : (T -> P) -> (P -> T) -> inhabited T = P.
Proof.
Source code PSource code :=
@WitnessedType P (wrap1Type P) (eq_inhabited (@id P) id).
Proof.
Source code PSource code TSource code :=
@WitnessedType P (wrap2Type _) (@proper_wTypeP P T).
inhabited (forall xSource code : A, wTycon P T x) = (forall xSource code : A, P x) .
Proof.
Source code ASource code PSource code TSource code :=
@WitnessedType _ (wrap3Type _) (@forall_wTypeP A P T).
Source code TSource code := @WitnessedType (inhabited T) (wrap4Type T) erefl.
Local Fact void_wTypePSource code : inhabited void = False
Proof.
Source code := ProperWitnessedType void_wTypeP.
Local Fact unit_wTypePSource code : inhabited unit = True
Proof.
Source code := ProperWitnessedType unit_wTypeP.
Local Fact pair_wTypePSource code PSource code QSource code SSource code TSource code : inhabited (wType P S * wType Q T) = (P /\ Q).
Canonical pair_wType
Source code PSource code QSource code SSource code TSource code := ProperWitnessedType (@pair_wTypeP P Q S T).
Local Fact sum_wTypePSource code PSource code QSource code SSource code TSource code : inhabited (wType P S + wType Q T) = (P \/ Q).
Canonical sum_wType
Source code PSource code QSource code SSource code TSource code := ProperWitnessedType (@sum_wTypeP P Q S T).
Local Fact sumbool_wTypePSource code PSource code QSource code : inhabited ({P} + {Q}) = (P \/ Q).
Proof.
Source code PSource code QSource code := ProperWitnessedType (@sumbool_wTypeP P Q).
Local Fact sumor_wTypePSource code PSource code QSource code TSource code : inhabited (wType P T + {Q}) = (P \/ Q).
Canonical sumor_wType
Source code PSource code QSource code TSource code := ProperWitnessedType (@sumor_wTypeP P Q T).
Local Fact sig1_wTypePSource code TSource code PSource code : inhabited {xSource code : T | P x} = (exists xSource code : T, P x).
Proof.
Source code TSource code PSource code := ProperWitnessedType (@sig1_wTypeP T P).
Local Fact sig2_wTypePSource code TSource code PSource code QSource code :
inhabited {xSource code : T | P x & Q x} = exists2 xSource code : T, P x & Q x.
Proof.
Source code TSource code PSource code QSource code := ProperWitnessedType (@sig2_wTypeP T P Q).
Local Fact sigT_wTypePSource code ASource code PSource code TSource code :
inhabited {xSource code : A & wTycon P T x} = (exists xSource code : A, P x).
Canonical sigT_wType
Source code ASource code PSource code TSource code := ProperWitnessedType (@sigT_wTypeP A P T).
Local Fact sigT2_wTypePSource code ASource code PSource code QSource code SSource code TSource code :
inhabited {xSource code : A & wTycon P S x & wTycon Q T x} = (exists2 xSource code : A, P x & Q x).
Canonical sigT2_wType
Source code ASource code PSource code QSource code SSource code TSource code :=
ProperWitnessedType (@sigT2_wTypeP A P Q S T).
Structure witnessPropSource code (trivialSource code : bool) (P0Source code : Prop) (TSource code : Type) :=
WitnessProp {witness_PropSource code :> wrappedProp; _ : witness_Prop -> T * P0}.
Structure properWitnessPropSource code TSource code :=
ProperWitnessProp {proper_witness_PropSource code :> Prop; _ : proper_witness_Prop -> T}.
Local Notation wPropSource code t T P0 P := (unwrap_Prop (@witness_Prop t P0 T P)).
Local Notation wPredSource code t T P0 P x := (wProp t (T x) (P0 x) (P x)).
Local Fact wPropPSource code tSource code TSource code P0Source code PSource code : wProp t T P0 P -> T * P0
Proof.
- mathcomp.reals.reals
- mathcomp.analysis.topology_theory.num_topology
- mathcomp.analysis.topology_theory.topology_structure
- mathcomp.analysis.topology_theory.metric_structure
- mathcomp.analysis.derive.derive_matrix
- mathcomp.analysis.normedtype_theory.pseudometric_normed_Zmodule
- mathcomp.analysis.normedtype_theory.tvs
- mathcomp.analysis.functional_analysis.hahn_banach_theorem
- mathcomp.analysis.sequences
- mathcomp.classical.wochoice
Source code {tSource code TSource code P0Source code PSource code} : move_view (wProp t T P0 P) T.
Proof.
Source code {TSource code P0Source code PSource code} := @lax_witness false T P0 P.
Proof.
limf_esup : forall {d : filter_display} {T : choiceType} {X : filteredType d T} {R : realFieldType}, (X -> \bar R) -> set_system X -> \bar R limf_esup is not universe polymorphic Arguments limf_esup {d}%_fdisp_scope {T X R} f%_function_scope F limf_esup is transparent Expands to: Constant mathcomp.analysis.normedtype_theory.ereal_normedtype.limf_esup Declared in library mathcomp.analysis.normedtype_theory.ereal_normedtype, line 47, characters 11-20
Source code TSource code PSource code := WitnessProp false (@proper_wPropP T P).
wrap2Prop (forall xSource code : A, wPred false T P0 P x) -> (forall xSource code, T x) * True.
Proof.
limf_einf : forall {d : filter_display} {T : choiceType} {X : filteredType d T} {R : realFieldType}, (X -> \bar R) -> set_system X -> \bar R limf_einf is not universe polymorphic Arguments limf_einf {d}%_fdisp_scope {T X R} f%_function_scope F limf_einf is transparent Expands to: Constant mathcomp.analysis.normedtype_theory.ereal_normedtype.limf_einf Declared in library mathcomp.analysis.normedtype_theory.ereal_normedtype, line 49, characters 11-20
Source code ASource code TSource code P0Source code PSource code := WitnessProp false (@forall_wPropP A T P0 P).
lower_semicontinuous : forall {d : filter_display} {X : topologicalType d} {R : numFieldType}, (X -> \bar R) -> Prop lower_semicontinuous is not universe polymorphic Arguments lower_semicontinuous {d}%_fdisp_scope {X R} f%_function_scope lower_semicontinuous is transparent Expands to: Constant mathcomp.analysis.normedtype_theory.ereal_normedtype.lower_semicontinuous Declared in library mathcomp.analysis.normedtype_theory.ereal_normedtype, line 91, characters 11-31
Source code PSource code :=
WitnessProp true (fun pSource code : wrap3Prop P => (p, p) : P * P).
Canonical inhabited_wProp
Source code TSource code := ProperWitnessProp (@inhabited_witness T).
Structure nandBoolSource code bSource code := NandBool {nand_boolSource code :> bool; _ : ~~ (nand_bool && b)}.
Canonical nand_false_bool
Source code bSource code := @NandBool b false isT.
Canonical nand_true_bool
gauss_fun : forall {R : realType}, R -> R gauss_fun is not universe polymorphic Arguments gauss_fun {R} x%_ring_scope gauss_fun is transparent Expands to: Constant mathcomp.analysis.gauss_integral.gauss_fun Declared in library mathcomp.analysis.gauss_integral, line 29, characters 11-20
Source code := @NandBool false true isT.
Local Fact and_wPropPSource code sSource code SSource code P0Source code PSource code (tSource code : nandBool s) TSource code Q0Source code QSource code :
wProp s S P0 P /\ wProp t T Q0 Q -> S * T.
Proof.
gauss_integral_proof.integral0y_gauss : forall {R : realType}, R gauss_integral_proof.integral0y_gauss is not universe polymorphic Arguments gauss_integral_proof.integral0y_gauss {R} gauss_integral_proof.integral0y_gauss is transparent Expands to: Constant mathcomp.analysis.gauss_integral.gauss_integral_proof.integral0y_gauss Declared in library mathcomp.analysis.gauss_integral, line 66, characters 11-27
Source code sSource code SSource code P0Source code PSource code tSource code TSource code Q0Source code QSource code :=
ProperWitnessProp (@and_wPropP s S P0 P t T Q0 Q).
Local Fact or_wPropPSource code sSource code SSource code P0Source code PSource code tSource code TSource code Q0Source code QSource code :
wProp s S P0 P \/ wProp t T Q0 Q ->
if t then if s then {P0} + {Q0} : Type else S + {Q0} else S + T : Type.
Canonical or_wProp
gauss_integral_proof.integral0_gauss : forall {R : realType}, R -> R gauss_integral_proof.integral0_gauss is not universe polymorphic Arguments gauss_integral_proof.integral0_gauss {R} x%_ring_scope gauss_integral_proof.integral0_gauss is transparent Expands to: Constant mathcomp.analysis.gauss_integral.gauss_integral_proof.integral0_gauss Declared in library mathcomp.analysis.gauss_integral, line 71, characters 11-26
Source code sSource code SSource code P0Source code PSource code tSource code TSource code Q0Source code QSource code :=
ProperWitnessProp (@or_wPropP s S P0 P t T Q0 Q).
Local Fact exists_wPropPSource code ASource code tSource code TSource code P0Source code PSource code :
(exists xSource code : A, wPred t T P0 P x) -> if t then {xSource code | P0 x} else {xSource code & T x}.
Canonical exists_wProp
gauss_integral_proof.u : forall {R : realType}, R -> R -> R gauss_integral_proof.u is not universe polymorphic Arguments gauss_integral_proof.u {R} (x t)%_ring_scope gauss_integral_proof.u is transparent Expands to: Constant mathcomp.analysis.gauss_integral.gauss_integral_proof.u Declared in library mathcomp.analysis.gauss_integral, line 85, characters 11-12
Source code ASource code tSource code TSource code P0Source code PSource code :=
ProperWitnessProp (@exists_wPropP A t T P0 P).
Local Fact exists2_wPropPSource code ASource code sSource code SSource code P0Source code PSource code tSource code TSource code Q0Source code QSource code (stSource code := if s then t else false) :
(exists2 xSource code : A, wPred s S P0 P x & wPred t T Q0 Q x) ->
if st then {xSource code | P0 x & Q0 x} else {xSource code : A & S x & T x}.
Canonical exists2_wProp
gauss_integral_proof.integral01_u : forall {R : realType}, R -> R gauss_integral_proof.integral01_u is not universe polymorphic Arguments gauss_integral_proof.integral01_u {R} x%_ring_scope gauss_integral_proof.integral01_u is transparent Expands to: Constant mathcomp.analysis.gauss_integral.gauss_integral_proof.integral01_u Declared in library mathcomp.analysis.gauss_integral, line 136, characters 11-23
Source code ASource code sSource code SSource code P0Source code PSource code tSource code TSource code Q0Source code QSource code :=
ProperWitnessProp (@exists2_wPropP A s S P0 P t T Q0 Q).
Local Fact push_goal_copySource code {TSource code} : ((T -> T) -> T) -> T
Proof.
Proof.
Local Fact absurdWSource code {SSource code TSource code} : (S -> False) -> S -> T
Proof.
Local Fact contra_TypeSource code {PSource code QSource code SSource code TSource code} : (~ Q -> ~ P) -> wType P S -> wType Q T.
Local Fact contra_notPSource code tPSource code tQSource code (nPSource code nQSource code : Prop) PSource code QSource code :
(nP -> nQ) -> (~ nProp tP nP P -> ~ nProp tQ nQ Q).
Proof.
End Internals.
#[warnings="-user-warn"] Definition notP
Used by
- mathcomp.classical.wochoice
Source code := @Internals.notP.
Hint View for move/ move_viewP|2.
Hint View for move/ Internals.equivT_LR|2 Internals.equivT_RL|2.
Hint View for apply/ Internals.equivT_RL|2 Internals.equivT_LR|2.
Export (canonicals) Internals.
Lemma assume_notSource code {PSource code} : (~ P -> P) -> P
Ltac assume_not :=
apply: Internals.push_goal_copy; apply: Internals.assume_not_with
=> /Internals.lax_notP-/Internals.lax_witness.
Ltac absurd_not := assume_not; apply: Internals.absurdW.
Ltac contrapose :=
apply: Internals.contra_Type;
apply: Internals.contra_notP => /Internals.lax_witness.
Tactic Notation "contra" := contrapose.
Tactic Notation "contra" ":" constr(H) := move: (H); contra.
Tactic Notation "contra" ":" ident(H) := move: H; contra.
Tactic Notation "contra" ":" "{" hyp_list(Hs) "}" constr(H) :=
contra: (H); clear Hs.
Tactic Notation "contra" ":" "{" hyp_list(Hs) "}" ident(H) :=
contra: H; clear Hs.
Tactic Notation "contra" ":" "{" "-" "}" constr(H) := contra: (H).
Lemma absurdSource code TSource code : False -> T
Proof.
Tactic Notation (at level 0) "absurd" constr(P) := have []: ~ P.
Tactic Notation "absurd" ":" constr(H) := absurd; contra: (H) => _.
Tactic Notation "absurd" ":" ident(H) := absurd; contra: H => _.
Tactic Notation "absurd" ":" "{" hyp_list(Hs) "}" constr(H) :=
absurd: (H) => _; clear Hs.
Tactic Notation "absurd" ":" "{" hyp_list(Hs) "}" ident(H) :=
absurd: H => _; clear Hs.