From Stdlib Require Import Classical Relations. From Hammer Require Import Hammer Tactics. Section Pilot. (* Vocabulary. Nothing is assumed about any of these. *) Variable Thing : Type. Variable Gives : Thing -> Thing -> Prop. (* Gives y x : y gives existence to x *) Variable Through : Thing -> Thing -> Prop. (* Through x y : x has its existence through y *) Variable Exists : Thing -> Prop. (* x exists *) Variable Ess : Thing -> Prop. (* x's existence is from its own nature *) Variable PartOf : Thing -> Thing -> Prop. (* p is a part of u *) Variable Universe : Thing. (* the universe *) (* Definitions. *) Definition DependsOn (x y : Thing) : Prop := Gives y x. (* x depends on y *) Definition ThroughAnother (x : Thing) : Prop := exists y, Gives y x. Definition OfItself (x : Thing) : Prop := Exists x /\ ~ ThroughAnother x. Definition Necessary (x : Thing) : Prop := Exists x /\ Ess x. Definition Possible (x : Thing) : Prop := Exists x /\ ~ Ess x. Definition InUniverse (x : Thing) : Prop := x = Universe \/ PartOf x Universe. (* Approved postulates, written as definitions: a theorem uses one only when its statement lists it as a condition. *) Definition MP001 : Prop := forall x y, Gives y x -> ~ Through y x. (* a giver does not have its existence through what it gives existence to *) Definition MP002 : Prop := forall x y, Gives y x -> Through x y. (* the receiver has its existence through the giver *) Definition MP003 : Prop := forall x y z, Through x y -> Through y z -> Through x z. (* existence-through is inherited *) Definition MP008 : Prop := forall x, Exists x -> ~ ThroughAnother x -> Ess x. (* existence comes from one's nature or from a giver *) Definition OP001 : Prop := forall x y, Gives y x -> OfItself y. (* only what exists of itself gives existence *) Definition OP006 : Prop := exists x, InUniverse x /\ Possible x. (* the universe is not wholly necessary *) Definition SP001 : Prop := exists x, Exists x. (* something exists *) (* Added for the full test: aggregates, possible worlds, and their postulates. *) Variable MemberOf : Thing -> Thing -> Prop. (* p is a member of the aggregate a *) Variable World : Type. Variable ExistsIn : World -> Thing -> Prop. (* x exists in world w *) Definition Independent (x : Thing) : Prop := forall y, ~ DependsOn x y. Definition NonExistencePossible (x : Thing) : Prop := exists w, ~ ExistsIn w x. Definition AggregateOfPossibles (A : Thing) : Prop := (forall p, p <> A -> (MemberOf p A <-> Possible p)) /\ ~ MemberOf A A. Definition MP007 : Prop := forall x, Ess x -> forall w, ExistsIn w x. (* existence from one's nature cannot fail *) Definition MP009 : Prop := (exists p, Possible p) -> exists A, AggregateOfPossibles A /\ Exists A. (* the aggregate of possibles exists *) Definition MP010 : Prop := forall A, (exists p, MemberOf p A) -> (forall p, MemberOf p A -> ~ Ess p) -> ~ Ess A. (* possibles do not add up to a necessary *) Definition MP011 : Prop := forall c A p, Gives c A -> MemberOf p A -> clos_trans Thing Gives c p. (* giving to a whole gives to its members *) Definition MP012 : Prop := forall y x, Gives y x -> Exists y. (* a giver exists *) Set Hammer ATPLimit 20. Set Hammer ReconstrLimit 10. Lemma imkan_s8_no_internal_cause_L1 : MP001 -> MP002 -> forall x, ~ Gives x x. Proof. intros; firstorder. Qed. Lemma imkan_s8_no_internal_cause_L2 : MP002 -> MP003 -> forall x y, clos_trans Thing Gives x y -> Through y x. Proof. intros; match goal with H : clos_trans _ _ _ _ |- _ => induction H end; firstorder eauto. Qed. Lemma imkan_s8_no_internal_cause_L3 : MP001 -> MP002 -> forall x y, Gives x y -> Through x y -> False. Proof. intros; firstorder. Qed. Lemma imkan_s8_no_internal_cause_L4 : forall x y, clos_trans Thing Gives x y -> clos_trans_1n Thing Gives x y. Proof. unfold MP001, MP002, MP003, MP007, MP008, MP009, MP010, MP011, MP012, OP001, OP006, SP001, OfItself, ThroughAnother, Necessary, Possible, InUniverse, DependsOn, Independent, NonExistencePossible, AggregateOfPossibles in *; intros; srun (eauto) use: clos_trans_t1n unfold: relation. Qed. Lemma imkan_s8_no_internal_cause_L5 : forall x y, clos_trans_1n Thing Gives x y -> Gives x y \/ (exists z, Gives x z /\ clos_trans_1n Thing Gives z y). Proof. intros; match goal with H : clos_trans_1n _ _ _ _ |- _ => induction H end; firstorder eauto. Qed. Lemma imkan_s8_no_internal_cause_L6 : forall x y, clos_trans_1n Thing Gives x y -> clos_trans Thing Gives x y. Proof. unfold MP001, MP002, MP003, MP007, MP008, MP009, MP010, MP011, MP012, OP001, OP006, SP001, OfItself, ThroughAnother, Necessary, Possible, InUniverse, DependsOn, Independent, NonExistencePossible, AggregateOfPossibles in *; intros; srun (eauto) use: clos_t1n_trans unfold: relation. Qed. Lemma imkan_s8_no_internal_cause_L7 : forall x y, clos_trans_1n Thing Gives x y -> exists z, Gives x z /\ (z = y \/ clos_trans Thing Gives z y). Proof. pose proof imkan_s8_no_internal_cause_L5 as sub1. pose proof imkan_s8_no_internal_cause_L6 as sub2. intros; firstorder. Qed. Lemma imkan_s8_no_internal_cause_L8 : forall x, clos_trans Thing Gives x x -> exists y, Gives x y /\ (y = x \/ clos_trans Thing Gives y x). Proof. pose proof imkan_s8_no_internal_cause_L4 as sub1. pose proof imkan_s8_no_internal_cause_L7 as sub2. intros; firstorder. Qed. Lemma imkan_s8_no_internal_cause_L9 : MP001 -> MP002 -> MP003 -> forall x, ~ clos_trans Thing Gives x x. Proof. pose proof imkan_s8_no_internal_cause_L2 as sub1. pose proof imkan_s8_no_internal_cause_L3 as sub2. pose proof imkan_s8_no_internal_cause_L8 as sub3. intros; hauto. Qed. Lemma imkan_s8_no_internal_cause_L10 : MP010 -> forall A B, AggregateOfPossibles A -> B <> A -> Exists B -> (exists p, MemberOf p B) -> (forall p, MemberOf p B -> MemberOf p A) -> MemberOf B A. Proof. intros; hauto lq: on unfold: MP010, AggregateOfPossibles, Possible. Qed. Lemma imkan_s8_no_internal_cause_L11 : MP011 -> forall A c, MemberOf c A -> Gives c A -> clos_trans Thing Gives c c. Proof. intros; firstorder. Qed. Lemma imkan_s8_no_internal_cause_L12 : MP001 -> MP002 -> forall x, Gives x x -> False. Proof. intros; firstorder. Qed. Lemma imkan_s8_no_internal_cause_L13 : forall x y, Gives x y -> clos_trans Thing Gives y x -> clos_trans Thing Gives x x. Proof. intros; sauto lq: on. Qed. Lemma imkan_s8_no_internal_cause_L14 : MP001 -> MP002 -> MP003 -> forall x y, Gives x y -> clos_trans Thing Gives y x -> False. Proof. pose proof imkan_s8_no_internal_cause_L9 as sub1. pose proof imkan_s8_no_internal_cause_L13 as sub2. intros; firstorder. Qed. Lemma imkan_s8_no_internal_cause_L15 : MP001 -> MP002 -> MP003 -> MP011 -> forall A c, MemberOf c A -> Gives c A -> False. Proof. pose proof imkan_s8_no_internal_cause_L11 as sub1. pose proof imkan_s8_no_internal_cause_L12 as sub2. pose proof imkan_s8_no_internal_cause_L14 as sub3. pose proof imkan_s8_no_internal_cause_L8 as sub4. intros; sauto. Qed. Lemma imkan_s8_no_internal_cause_L16 : MP001 -> MP002 -> MP003 -> MP010 -> MP011 -> forall A, AggregateOfPossibles A -> (forall x, ~ Gives x x) /\ ~ Gives A A /\ (forall c, MemberOf c A -> ~ Gives c A) /\ (forall B, B <> A -> Exists B -> (exists p, MemberOf p B) -> (forall p, MemberOf p B -> MemberOf p A) -> ~ Gives B A). Proof. pose proof imkan_s8_no_internal_cause_L1 as sub1. pose proof imkan_s8_no_internal_cause_L9 as sub2. pose proof imkan_s8_no_internal_cause_L10 as sub3. pose proof imkan_s8_no_internal_cause_L15 as sub4. unfold MP001, MP002, MP003, MP007, MP008, MP009, MP010, MP011, MP012, OP001, OP006, SP001, OfItself, ThroughAnother, Necessary, Possible, InUniverse, DependsOn, Independent, NonExistencePossible, AggregateOfPossibles in *; intros; intuition eauto. Qed. End Pilot. Print Assumptions imkan_s8_no_internal_cause_L16.