Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Mizar/abstr/   (Mizar Prover Version 8.1.15©)  Datei vom 6.10.2026 mit Größe 13 kB image not shown  

SSL fuzzy_9.abs   Sprache: Mizar

 

:: Triangular Fuzzy Set Composed of Two Intersecting Affine Maps
::  by Takashi Mitsuishi
:: 
:: Received December 2, 2025
:: Copyright (c) 2025-2026 Association of Mizar Users
::           (Stowarzyszenie Uzytkownikow Mizara, Bialystok, Poland).
:: This code can be distributed under the GNU General Public Licence
:: version 3.0 or later, or the Creative Commons Attribution-ShareAlike
:: License version 4.0 or later, subject to the binding interpretation
:: detailed in file COPYING.interpretation.
:: See COPYING.GPL and COPYING.CC-BY-SA for the full text of these
:: licenses, or see http://www.gnu.org/licenses/gpl.html and
:: http://creativecommons.org/licenses/by-sa/4.0/.

environ

 vocabularies NUMBERS, XBOOLE_0, SUBSET_1, XXREAL_1, CARD_1, RELAT_1, FUNCT_1,
      XXREAL_0, PARTFUN1, ARYTM_1, ARYTM_3, COMPLEX1, MEASURE5, FUZNUM_1,
      REAL_1, ORDINAL2, XXREAL_2, JGRAPH_2, FUNCT_4, FCONT_1, INTEGRA5, SEQ_4,
      VALUED_1, INTEGRA1, RFUNCT_3, FUZZY_6;
 notations XBOOLE_0, SUBSET_1, RELAT_1, NUMBERS, XCMPLX_0, XXREAL_0, COMPLEX1,
      XREAL_0, FUNCT_1, RELSET_1, VALUED_1, MEASURE5, PARTFUN1, FUNCT_2,
      FCONT_1, FUNCT_3, INTEGRA1, RFUNCT_3, FUNCT_4, COMSEQ_2, SEQ_4, RCOMP_1,
      INTEGRA5, FUZNUM_1, FUZZY_6;
 constructors SEQ_4, RELSET_1, FCONT_1, FUNCT_4, FUZNUM_1, COMSEQ_2, NEWTON,
      RFUNCT_3, INTEGRA1, INTEGRA5, FUZZY_6;
 registrations RELSET_1, NUMBERS, XXREAL_0, MEMBERED, XBOOLE_0, VALUED_0,
      VALUED_1, FUNCT_2, XREAL_0, ORDINAL1, FCONT_1, RELAT_1, FUNCT_1,
      XCMPLX_0, NAT_1, FUZNUM_1, INTEGRA1;
 requirements NUMERALS, REAL, SUBSET, BOOLE, ARITHM;


begin

theorem :: FUZZY_9:1
  for p,q,s,t being Real st p > 0 & p*s < 0 holds
    t > q iff (t-q)/(p-s) > 0;

theorem :: FUZZY_9:2
  for p,q,s,t being Real st p > 0 & p*s < 0 holds
    t < q iff (t-q)/(p-s) < 0;

theorem :: FUZZY_9:3
  for p,q,s,t being Real st
    p > 0 & p*s < 0 holds
  (p*t-q*s)/(p-s) < 0 iff -q/p > -t/s;

theorem :: FUZZY_9:4
  for p,q,s,t being Real st
    p > 0 & p*s < 0 holds
  (p*t-q*s)/(p-s) > 0 iff -q/p < -t/s;

theorem :: FUZZY_9:5
for a, b being Real holds
a in REAL \ ].a,b.[ & b in REAL \ ].a,b.[;

theorem :: FUZZY_9:6
for a, b, c, d being Real st a < b & b < c & c < d holds
(REAL \ ].a,d.[) /\ [.b,c.] = {};

theorem :: FUZZY_9:7
for p,q,s,t being Real st s <> p holds
AffineMap (p,q). ((t-q)/(p-s)) = AffineMap (s,t). ((t-q)/(p-s)) &
AffineMap (s,t). ((t-q)/(p-s)) = (p*t-q*s)/(p-s);

theorem :: FUZZY_9:8
for p,q,s,t being Real st p*s < 0 & p > 0 & (p*t-q*s)/(p-s) > 0
holds -q/p < (t-q)/(p-s) & (t-q)/(p-s) < -t/s & -q/p < -t/s;

theorem :: FUZZY_9:9
  for r be Real, C,U being Subset of REAL,
      f,g be Function of REAL,REAL holds
    r (#) ((f | C) +* (g | U)) =
      (r (#) (f | C)) +* (r (#) (g | U));

:: ' centroid ' and area of continuous function

theorem :: FUZZY_9:10  ::: see FUZZY_8:17
  for f,g,h be Function of REAL,REAL, a,b,c be Real st
    a <= b & b <= c & f is continuous & g is continuous &
    h | [.a,c.] = f | [.a,b.] +* g | [.b,c.] &
    integral(f,['a,b']) <> 0 & integral(g,['b,c']) <> 0 & f.b = g.b holds
  centroid(h, ['a,c']) = 1 / integral(h,['a,c'])
    * ( integral((id REAL)(#)f,['a,b']) + integral((id REAL)(#)g,['b,c']) );

::  TriangularFS by AffineMap (p,q) and AffineMap (s,t)
::
::   \            / y = p*x + q
::      \       /
::         \  /
::          / \  ( (t-q)/(p-s),(p*t-q*s)/(p-s) )
::        /      \
::      /           \   y = s*x + t
::    /                \
::--------------------------
::- q/p                - s/t

:: TriangularFS (a,b,c)
::
::  r ---- /\
::       /  |  \
::     /    |     \
::   /      |        \
:: /        |           \
::------------------------
:: a        b            c

theorem :: FUZZY_9:11
  for a,b,c be Real st a < b & b < c holds
    TriangularFS (a,b,c) | [.a,c.]
  = AffineMap (1 / (b - a), -(a / (b - a))) | [.a,b.]
  +* AffineMap (- (1 / (c - b)), c / (c - b)) | [.b,c.];

theorem :: FUZZY_9:12
for a,b,c,r be Real, f be Function of REAL,REAL st a < b & b < c
holds
(r (#) TriangularFS (a,b,c)) | [.a,c.]
 = (r (#) AffineMap (1 / (b - a), -(a / (b - a)))) | [.a,b.]
+* (r (#) AffineMap (- (1 / (c - b)), c / (c - b))) | [.b,c.];

theorem :: FUZZY_9:13
for a,b,c,r be Real, f be Function of REAL,REAL st a < b & b < c &
for x being Real holds f.x = (r (#) TriangularFS (a,b,c)).x holds
f | [.a,c.] = (r (#) AffineMap (1 / (b - a), -(a / (b - a)))) | [.a,b.]
           +* (r (#) AffineMap (- (1 / (c - b)), c / (c - b))) | [.b,c.];

theorem :: FUZZY_9:14
for p,q,s,t being Real, f being Function of REAL,REAL st
p*s < 0 & p > 0 & (p*t-q*s)/(p-s) > 0 holds
( AffineMap (p,q) | [.-q/p,(t-q)/(p-s).] ) +*
( AffineMap (s,t) | [.(t-q)/(p-s),-t/s.] )
 = ((p*t-q*s)/(p-s)) (#) (TriangularFS(-q/p,(t-q)/(p-s),-t/s)|[.-q/p,-t/s.]);

theorem :: FUZZY_9:15
for p,q,s,t,x being Real st
p*s < 0 & p > 0 & (p*t-q*s)/(p-s) > 0 & not x in ].-q/p,-t/s.[ holds
 ( (AffineMap (p,q) | ].-infty,(t-q)/(p-s).])
+* (AffineMap (s,t) | [.(t-q)/(p-s),+infty.[) ).x <= 0;

theorem :: FUZZY_9:16
for a,b,c,x be Real st a < b & b < c & not x in ].a,c.[ holds
 ( AffineMap ( 1/(b - a), -(a/(b - a)) ) | ].-infty,b.]
+* AffineMap ( -(1/(c - b)), c/(c - b) ) | [.b,+infty.[ ).x <= 0;

theorem :: FUZZY_9:17
for a,b,c,x be Real st a < b & b < c & x in [.a,c.] holds
TriangularFS (a,b,c).x >= 0;

theorem :: FUZZY_9:18
for a,b,c be Real, f be Function of REAL,REAL
 st a < b & b < c &
f = (AffineMap ( 1/(b - a), -(a/(b - a)) ) | ].-infty,b.]
  +* AffineMap ( -(1/(c - b)), c/(c - b) ) | [.b,+infty.[ ) holds
max+ f = TriangularFS (a,b,c);

theorem :: FUZZY_9:19
for a,b,c,r be Real, f be Function of REAL,REAL
 st a < b & b < c & r > 0 &
f = r (#) (AffineMap ( 1/(b - a), -(a/(b - a)) ) | ].-infty,b.]
        +* AffineMap ( -(1/(c - b)), c/(c - b) ) | [.b,+infty.[ ) holds
max+ f = r (#) TriangularFS (a,b,c);

theorem :: FUZZY_9:20
for p,q,s,t being Real, f being Function of REAL,REAL st
p*s < 0 & p > 0 & (p*t-q*s)/(p-s) > 0 &
for x being Real holds
f.x = ( (AffineMap (p,q) | ].-infty,(t-q)/(p-s).])
     +* (AffineMap (s,t) | [.(t-q)/(p-s),+infty.[) ).x
holds
max+ f = (p*t-q*s)/(p-s) (#) ( TriangularFS(-q/p,(t-q)/(p-s),-t/s) );

theorem :: FUZZY_9:21
for a,b,c,r be Real, f be Function of REAL,REAL st a < b & b < c &
for x being Real holds f.x = (r (#) TriangularFS (a,b,c)).x holds
integral(f,['a,c']) = r*(c-a)/2;

theorem :: FUZZY_9:22
for a,b,c be Real st a < b & b < c holds
integral(TriangularFS (a,b,c) | ['a,c']) = (c-a)/2;

:: Centroid of Trianglar Function@(a+b+c)/3
theorem :: FUZZY_9:23
for a,b,c,r be Real, f be Function of REAL,REAL st a < b & b < c & r <> 0 &
for x being Real holds f.x = (r (#) TriangularFS (a,b,c)).x holds
centroid(f,['a,c']) = (a+b+c)/3;

theorem :: FUZZY_9:24
for p,q,s,t being Real, f,F being Function of REAL,REAL st
p*s < 0 & p > 0 & (p*t-q*s)/(p-s) > 0 &
f = (AffineMap (p,q) | ].-infty,(t-q)/(p-s).])
 +* (AffineMap (s,t) | [.(t-q)/(p-s),+infty.[) & F = max+ f
holds
centroid(F,['-q/p,-t/s']) = (-q/p+(t-q)/(p-s)+-t/s)/3;

theorem :: FUZZY_9:25
for A be non empty closed_interval Subset of REAL,
p,q,r,s,t,u be Real, f be Function of REAL,REAL st p*s < 0 & p > 0 &
for x be Real holds
f.x = max(r,min( u, ( (AffineMap (p,q) |].-infty,(t-q)/(p-s).]) +*
                     (AffineMap (s,t) |[.(t-q)/(p-s),+infty.[) ) .x ))
holds f is Lipschitzian;

theorem :: FUZZY_9:26
for A be non empty closed_interval Subset of REAL,
p,q,r,s,t,u be Real, f be Function of REAL,REAL st p*s < 0 & p > 0 &
for x be Real holds
f.x = max(r,min( u, ( (AffineMap (p,q) |].-infty,(t-q)/(p-s).]) +*
                     (AffineMap (s,t) |[.(t-q)/(p-s),+infty.[) ) .x ))
holds f is_integrable_on A & f | A is bounded;

begin :: Trapezoidal Fuzzy Set

::        ___________
::       /|\      / |\
::      / |  \  /   |  \
::     /  |    X    |     \
::    /   |  /   \  |        \
::   /    |/       \|           \
:: ------------------------------
:: a      b         c            d

theorem :: FUZZY_9:27
for a, b, c, d being Real st a < b & b < c & c < d holds
(for x be object st x in [.a,b.] holds
TrapezoidalFS (a,b,c,d).x = ( AffineMap (1 / (b - a),- (a / (b - a)))).x );

theorem :: FUZZY_9:28
for a, b, c, d being Real st a < b & b < c & c < d holds
(for x be object st x in [.b,c.] holds
TrapezoidalFS (a,b,c,d).x = AffineMap (0,1).x);

theorem :: FUZZY_9:29
for a, b, c, d being Real st a < b & b < c & c < d holds
(for x be object st x in [.c,d.] holds
TrapezoidalFS (a,b,c,d).x
= ( AffineMap (- (1 / (d - c)), d / (d - c)) ).x );

theorem :: FUZZY_9:30
for a, b, c, d being Real st a < b & b < c & c < d holds
(for x be Real st not x in [.a,d.] holds
TrapezoidalFS (a,b,c,d).x = 0 );

theorem :: FUZZY_9:31
for a, b, c, d being Real st a < b & b < c & c < d holds
TriangularFS (a,b,c) + TriangularFS (b,c,d) = TrapezoidalFS (a,b,c,d);

begin :: Related Properties about the Integral of Two Connected Functions

 reserve A for non empty closed_interval Subset of REAL;

theorem :: FUZZY_9:32
for a,b,c being Real, f,g be Function of ['a,c'],REAL st
a <= b & b <= c holds
(f | [.a,b.] +* g | [.b,c.]) is Function of ['a,c'],REAL;

theorem :: FUZZY_9:33
for a,b,c being Real, f,g be Function of ['a,c'],REAL st
a <= b & b <= c &
f | ['a,c'] is bounded & g | ['a,c'] is bounded
holds
( (f| [.a,b.]) +* (g | [.b,c.]) ) | ['a,c'] is bounded;

theorem :: FUZZY_9:34
for a being Real, f, g being Function of REAL,REAL
st f | A is bounded & g | A is bounded & a in A
holds
(( f | ].-infty,a.[ ) +* ( g | [.a,+infty.[ )) | ['lower_bound A,a']
is bounded &
(( f | ].-infty,a.[ ) +* ( g | [.a,+infty.[ )) | ['a,upper_bound A']
is bounded;

theorem :: FUZZY_9:35
for a being Real, f, g, h being Function of REAL,REAL st
f | A is bounded & f is_integrable_on A &
g | A is bounded & g is_integrable_on A &
a in A & h = ( f | ].-infty,a.] ) +* ( g | [.a,+infty.[ ) & f.a = g.a
holds
h is_integrable_on [' lower_bound A, a '] &
h is_integrable_on [' a, upper_bound A '];

theorem :: FUZZY_9:36
for a being Real, f, g, h being Function of REAL,REAL st
f | A is bounded & f is_integrable_on A &
g | A is bounded & g is_integrable_on A &
a in A & h = ( f | ].-infty,a.] ) +* ( g | [.a,+infty.[ ) & f.a = g.a
holds
integral (h,A)
= integral (f,['lower_bound A, a']) + integral (g,['a,upper_bound A']);



Messung
CHZG
9310010097

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*Bot Zugriff